From a0854c084ea1541591c54aaab1f993ebaf92ffaf Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 3 Apr 2015 17:55:18 +0000 Subject: avfilter: handle error in query_formats() in bunch of filters Signed-off-by: Paul B Mahol --- libavfilter/af_volumedetect.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libavfilter/af_volumedetect.c') diff --git a/libavfilter/af_volumedetect.c b/libavfilter/af_volumedetect.c index 5de115e9f2..01f24baea0 100644 --- a/libavfilter/af_volumedetect.c +++ b/libavfilter/af_volumedetect.c @@ -44,9 +44,7 @@ static int query_formats(AVFilterContext *ctx) if (!(formats = ff_make_format_list(sample_fmts))) return AVERROR(ENOMEM); - ff_set_common_formats(ctx, formats); - - return 0; + return ff_set_common_formats(ctx, formats); } static int filter_frame(AVFilterLink *inlink, AVFrame *samples) -- cgit v1.2.3