diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2016-11-29 17:28:15 +0100 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-11-30 12:36:23 +0100 |
commit | 88281a5256f0034451c09acab3aff44acb43c2a3 (patch) | |
tree | b318b1f07712467e73ecf84a6c1bcacef8612b76 | |
parent | 1d056dd855e408a0c7debf1d0e9fe09b0a439cea (diff) | |
download | ffmpeg-88281a5256f0034451c09acab3aff44acb43c2a3.tar.gz |
avfilter/vf_scale_npp: check ff_set_common_formats return value
-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) |