Commit a0560d04 authored by Moritz Barsnick's avatar Moritz Barsnick Committed by Paul B Mahol

avfilter/vf_ocr: check ff_set_common_formats() return value

Signed-off-by: 's avatarMoritz Barsnick <barsnick@gmx.net>
parent 17806f60
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment