aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-07-04 11:15:14 +0200
committerReinhard Tartler <siretart@tauware.de>2012-02-08 14:38:31 +0100
commitaf58dd479859001808a9b7c085e1d271b8e8962b (patch)
tree45a87e2ab47fd1d59a36420ea19a393154ec0759
parent5c9ca599a70c0babdc4af301753e7067888611d6 (diff)
downloadffmpeg-af58dd479859001808a9b7c085e1d271b8e8962b.tar.gz
vf_pad: fix "vsub" variable value computation
It was shifting 2 rather than 1, +10l. Signed-off-by: Anton Khirnov <anton@khirnov.net> (cherry picked from commit 80de930a781c177dc54f3836f57aa8959597bcda) Signed-off-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Reinhard Tartler <siretart@tauware.de>
-rw-r--r--libavfilter/vf_pad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_pad.c b/libavfilter/vf_pad.c
index 18873b8837..d4d2b205d3 100644
--- a/libavfilter/vf_pad.c
+++ b/libavfilter/vf_pad.c
@@ -157,7 +157,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),