mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_scale_npp: check ff_set_common_formats return value
This commit is contained in:
parent
1d056dd855
commit
88281a5256
|
@ -171,9 +171,7 @@ static int nppscale_query_formats(AVFilterContext *ctx)
|
|||
};
|
||||
AVFilterFormats *pix_fmts = ff_make_format_list(pixel_formats);
|
||||
|
||||
ff_set_common_formats(ctx, pix_fmts);
|
||||
|
||||
return 0;
|
||||
return ff_set_common_formats(ctx, pix_fmts);
|
||||
}
|
||||
|
||||
static int init_stage(NPPScaleStageContext *stage, AVBufferRef *device_ctx)
|
||||
|
|
Loading…
Reference in New Issue