projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1efaf8
)
vf_drawbox: avoid declaration in for() arguments
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 25 Jun 2013 22:52:16 +0000
(
00:52
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 25 Jun 2013 22:52:16 +0000
(
00:52
+0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_drawbox.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_drawbox.c
b/libavfilter/vf_drawbox.c
index
6bcaf75
..
d669dfb
100644
(file)
--- 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 (i
nt 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,