[FFmpeg-cvslog] avfilter/vf_scale_npp: check ff_set_common_formats return value
Timo Rothenpieler
git at videolan.org
Wed Nov 30 13:42:38 EET 2016
ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Tue Nov 29 17:28:15 2016 +0100| [88281a5256f0034451c09acab3aff44acb43c2a3] | committer: Timo Rothenpieler
avfilter/vf_scale_npp: check ff_set_common_formats return value
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=88281a5256f0034451c09acab3aff44acb43c2a3
---
libavfilter/vf_scale_npp.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/libavfilter/vf_scale_npp.c b/libavfilter/vf_scale_npp.c
index 3c1d1e9..1abfdd1 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)
More information about the ffmpeg-cvslog
mailing list