diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-07-04 11:15:14 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-07-04 11:20:00 +0200 |
commit | 80f1cfd09d15be441d6b22c259397aaec29a7b27 (patch) | |
tree | 39bca0a821147dbd7ce4ccb427bd6620f056ee4b | |
parent | 8b59caca7b4a3b7058a1991f8babd2715df5dd10 (diff) | |
download | ffmpeg-80f1cfd09d15be441d6b22c259397aaec29a7b27.tar.gz |
vf_pad: fix "vsub" variable value computation
It was shifting 2 rather than 1, +10l.
-rw-r--r-- | libavfilter/vf_pad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c index 879a0b5fe8..e01a750d94 100644 --- a/libavfilter/vf_pad.c +++ b/libavfilter/vf_pad.c @@ -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), |