You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
vf_scale_vaapi: Add missing return value checks
Fixes CID 1374119.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user