diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-26 02:52:16 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-26 02:52:16 +0400 |
commit | 47da9b2c51129038f54a10e05e8c9dbc8ac26c62 (patch) | |
tree | c53a08e6abc55d0aaa4d7815e8c179e4f32cc646 /libavfilter/vf_drawbox.c | |
parent | f1efaf837117718e3b4c96336fe9b5f686b1fe30 (diff) |
vf_drawbox: avoid declaration in for() arguments
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_drawbox.c')
-rw-r--r-- | libavfilter/vf_drawbox.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_drawbox.c b/libavfilter/vf_drawbox.c index 6bcaf75202..d669dfb5c9 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, |