diff options
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_scale_npp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavfilter/vf_scale_npp.c b/libavfilter/vf_scale_npp.c index 3c1d1e9021..1abfdd1f11 100644 --- a/libavfilter/vf_scale_npp.c +++ b/libavfilter/vf_scale_npp.c @@ -169,11 +169,9 @@ static int nppscale_query_formats(AVFilterContext *ctx) static const enum AVPixelFormat pixel_formats[] = { AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE, }; - AVFilterFormats *pix_fmts = ff_make_format_list(pixel_formats); + 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) |