From 80de930a781c177dc54f3836f57aa8959597bcda Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Mon, 4 Jul 2011 11:15:14 +0200 Subject: [PATCH] vf_pad: fix "vsub" variable value computation It was shifting 2 rather than 1, +10l. Signed-off-by: Anton Khirnov --- libavfilter/vf_pad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c index 27440d842f..9ba91ed21c 100644 --- a/libavfilter/vf_pad.c +++ b/libavfilter/vf_pad.c @@ -158,7 +158,7 @@ static int config_input(AVFilterLink *inlink) var_values[VAR_OUT_H] = var_values[VAR_OH] = NAN; var_values[VAR_A] = (float) inlink->w / inlink->h; var_values[VAR_HSUB] = 1<hsub; - var_values[VAR_VSUB] = 2<vsub; + var_values[VAR_VSUB] = 1<vsub; /* evaluate width and height */ av_expr_parse_and_eval(&res, (expr = pad->w_expr),