summaryrefslogtreecommitdiff
path: root/libavfilter/vf_scale_npp.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2016-11-29 17:28:15 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2016-11-30 12:36:23 +0100
commit88281a5256f0034451c09acab3aff44acb43c2a3 (patch)
treeb318b1f07712467e73ecf84a6c1bcacef8612b76 /libavfilter/vf_scale_npp.c
parent1d056dd855e408a0c7debf1d0e9fe09b0a439cea (diff)
avfilter/vf_scale_npp: check ff_set_common_formats return value
Diffstat (limited to 'libavfilter/vf_scale_npp.c')
-rw-r--r--libavfilter/vf_scale_npp.c6
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)