avfilter/vf_ocr: check ff_set_common_formats() return value
authorMoritz Barsnick <barsnick@gmx.net>
Wed, 1 Nov 2017 00:30:57 +0000 (01:30 +0100)
committerPaul B Mahol <onemda@gmail.com>
Wed, 1 Nov 2017 08:50:57 +0000 (09:50 +0100)
Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
libavfilter/vf_ocr.c

index e003982..abfff49 100644 (file)
@@ -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)