From 47da9b2c51129038f54a10e05e8c9dbc8ac26c62 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 26 Jun 2013 00:52:16 +0200 Subject: vf_drawbox: avoid declaration in for() arguments Signed-off-by: Michael Niedermayer --- libavfilter/vf_drawbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavfilter/vf_drawbox.c') diff --git a/libavfilter/vf_drawbox.c b/libavfilter/vf_drawbox.c index 6bcaf75..d669dfb 100644 --- a/libavfilter/vf_drawbox.c +++ b/libavfilter/vf_drawbox.c @@ -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, -- cgit v1.1