libavfilter/vf_hwdownload: show error when ff_formats_ref fails

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
dsmudhar 2016-05-22 06:26:36 +05:30 committed by Michael Niedermayer
parent 35b37591c0
commit 04d35004c3

View File

@ -56,8 +56,10 @@ static int hwdownload_query_formats(AVFilterContext *avctx)
} }
} }
ff_formats_ref(infmts, &avctx->inputs[0]->out_formats); if ((err = ff_formats_ref(infmts, &avctx->inputs[0]->out_formats)) < 0 ||
ff_formats_ref(outfmts, &avctx->outputs[0]->in_formats); (err = ff_formats_ref(outfmts, &avctx->outputs[0]->in_formats)) < 0)
return err;
return 0; return 0;
} }