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/vf_pad.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavfilter/vf_pad.c') diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c index 2d9b9d0362..63dc6a8b6c 100644 --- a/libavfilter/vf_pad.c +++ b/libavfilter/vf_pad.c @@ -73,8 +73,7 @@ enum var_name { static int query_formats(AVFilterContext *ctx) { - ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0)); - return 0; + return ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0)); } typedef struct PadContext { -- cgit v1.2.3