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
1 changed files with 4 additions and 2 deletions

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;
}