Browse Source

libavfilter/vf_hwdownload: show error when ff_formats_ref fails

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.1
dsmudhar Michael Niedermayer 9 years ago
parent
commit
04d35004c3
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      libavfilter/vf_hwdownload.c

+ 4
- 2
libavfilter/vf_hwdownload.c View File

@@ -56,8 +56,10 @@ static int hwdownload_query_formats(AVFilterContext *avctx)
}
}

ff_formats_ref(infmts, &avctx->inputs[0]->out_formats);
ff_formats_ref(outfmts, &avctx->outputs[0]->in_formats);
if ((err = ff_formats_ref(infmts, &avctx->inputs[0]->out_formats)) < 0 ||
(err = ff_formats_ref(outfmts, &avctx->outputs[0]->in_formats)) < 0)
return err;

return 0;
}



Loading…
Cancel
Save