aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_fieldmatch.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2015-03-15 14:20:34 +0100
committerClément Bœsch <u@pkh.me>2015-03-16 23:43:12 +0100
commitfd682b189264dc3a7fd913a21ff0c23bb08e3ef4 (patch)
tree8685464c0f7b2af6158f3f253824abe12efc8695 /libavfilter/vf_fieldmatch.c
parent545b0dd6aa30f392a9693b41c8f21e28c3dde0dd (diff)
downloadffmpeg-fd682b189264dc3a7fd913a21ff0c23bb08e3ef4.tar.gz
avfilter: handle error in query_formats() of a bunch of random video filters
Diffstat (limited to 'libavfilter/vf_fieldmatch.c')
-rw-r--r--libavfilter/vf_fieldmatch.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/vf_fieldmatch.c b/libavfilter/vf_fieldmatch.c
index 54fd16bee4..96cb1a4ad9 100644
--- a/libavfilter/vf_fieldmatch.c
+++ b/libavfilter/vf_fieldmatch.c
@@ -855,8 +855,10 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUV410P,
AV_PIX_FMT_NONE
};
- ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
- return 0;
+ AVFilterFormats *fmts_list = ff_make_format_list(pix_fmts);
+ if (!fmts_list)
+ return AVERROR(ENOMEM);
+ return ff_set_common_formats(ctx, fmts_list);
}
static int config_input(AVFilterLink *inlink)