[FFmpeg-cvslog] avfilter/vf_ocr: check ff_set_common_formats() return value
Moritz Barsnick
git at videolan.org
Wed Nov 1 10:51:22 EET 2017
ffmpeg | branch: master | Moritz Barsnick <barsnick at gmx.net> | Wed Nov 1 01:30:57 2017 +0100| [a0560d0477549eaaa7d002e013bd8376e80873e4] | committer: Paul B Mahol
avfilter/vf_ocr: check ff_set_common_formats() return value
Signed-off-by: Moritz Barsnick <barsnick at gmx.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a0560d0477549eaaa7d002e013bd8376e80873e4
---
libavfilter/vf_ocr.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libavfilter/vf_ocr.c b/libavfilter/vf_ocr.c
index e003982f05..abfff49438 100644
--- a/libavfilter/vf_ocr.c
+++ b/libavfilter/vf_ocr.c
@@ -90,9 +90,7 @@ static int query_formats(AVFilterContext *ctx)
AVFilterFormats *fmts_list = ff_make_format_list(pix_fmts);
if (!fmts_list)
return AVERROR(ENOMEM);
- ff_set_common_formats(ctx, fmts_list);
-
- return 0;
+ return ff_set_common_formats(ctx, fmts_list);
}
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
More information about the ffmpeg-cvslog
mailing list