]> git.sesse.net Git - ffmpeg/commitdiff
vf_pad: fix "vsub" variable value computation
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 4 Jul 2011 09:15:14 +0000 (11:15 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 28 Sep 2011 06:03:30 +0000 (08:03 +0200)
It was shifting 2 rather than 1, +10l.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavfilter/vf_pad.c

index 27440d842f949092141bce9497643d970d3cf89f..9ba91ed21cc55625399618f623f2cf55fc009ba7 100644 (file)
@@ -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<<pad->hsub;
-    var_values[VAR_VSUB]  = 2<<pad->vsub;
+    var_values[VAR_VSUB]  = 1<<pad->vsub;
 
     /* evaluate width and height */
     av_expr_parse_and_eval(&res, (expr = pad->w_expr),