mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 12:40:01 +00:00
vf_scale_vaapi: Add missing return value checks
Fixes CID 1374119.
This commit is contained in:
parent
55a7e7e398
commit
326b1ed93e
@ -65,11 +65,14 @@ static int scale_vaapi_query_formats(AVFilterContext *avctx)
|
||||
enum AVPixelFormat pix_fmts[] = {
|
||||
AV_PIX_FMT_VAAPI, AV_PIX_FMT_NONE,
|
||||
};
|
||||
int err;
|
||||
|
||||
ff_formats_ref(ff_make_format_list(pix_fmts),
|
||||
&avctx->inputs[0]->out_formats);
|
||||
ff_formats_ref(ff_make_format_list(pix_fmts),
|
||||
&avctx->outputs[0]->in_formats);
|
||||
if ((err = ff_formats_ref(ff_make_format_list(pix_fmts),
|
||||
&avctx->inputs[0]->out_formats)) < 0)
|
||||
return err;
|
||||
if ((err = ff_formats_ref(ff_make_format_list(pix_fmts),
|
||||
&avctx->outputs[0]->in_formats)) < 0)
|
||||
return err;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user