Commit 47da9b2c authored by Michael Niedermayer's avatar Michael Niedermayer

vf_drawbox: avoid declaration in for() arguments

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f1efaf83
......@@ -123,6 +123,7 @@ static int config_input(AVFilterLink *inlink)
double var_values[VARS_NB], res;
char *expr;
int ret;
int i;
s->hsub = desc->log2_chroma_w;
s->vsub = desc->log2_chroma_h;
......@@ -139,7 +140,7 @@ static int config_input(AVFilterLink *inlink)
var_values[VAR_W] = NAN;
var_values[VAR_T] = NAN;
for (int i = 0; i <= NUM_EXPR_EVALS; i++) {
for (i = 0; i <= NUM_EXPR_EVALS; i++) {
/* evaluate expressions, fail on last iteration */
if ((ret = av_expr_parse_and_eval(&res, (expr = s->x_expr),
var_names, var_values,
......
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