Commit 80de930a authored by Stefano Sabatini's avatar Stefano Sabatini Committed by Anton Khirnov

vf_pad: fix "vsub" variable value computation

It was shifting 2 rather than 1, +10l.
Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent 46b29397
......@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment