[FFmpeg-cvslog] vf_drawbox: avoid declaration in for() arguments
Michael Niedermayer
git at videolan.org
Wed Jun 26 01:22:47 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jun 26 00:52:16 2013 +0200| [47da9b2c51129038f54a10e05e8c9dbc8ac26c62] | committer: Michael Niedermayer
vf_drawbox: avoid declaration in for() arguments
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=47da9b2c51129038f54a10e05e8c9dbc8ac26c62
---
libavfilter/vf_drawbox.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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,
More information about the ffmpeg-cvslog
mailing list