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)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 4 Jul 2011 09:20:00 +0000 (11:20 +0200)
It was shifting 2 rather than 1, +10l.

libavfilter/vf_pad.c

index 879a0b5..e01a750 100644 (file)
@@ -162,7 +162,7 @@ static int config_input(AVFilterLink *inlink)
     var_values[VAR_SAR]   = inlink->sample_aspect_ratio.num ?
         (float) inlink->sample_aspect_ratio.num / inlink->sample_aspect_ratio.den : 1;
     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),