Commit 04d35004 authored by dsmudhar's avatar dsmudhar Committed by Michael Niedermayer

libavfilter/vf_hwdownload: show error when ff_formats_ref fails

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 35b37591
...@@ -56,8 +56,10 @@ static int hwdownload_query_formats(AVFilterContext *avctx) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment