This should fix compilation with gcc 2.95 and possibly others
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -295,6 +295,7 @@ static int query_formats(AVFilterContext *ctx) |
295 | 295 |
static int config_input(AVFilterLink *inlink) |
296 | 296 |
{ |
297 | 297 |
HQDN3DContext *hqdn3d = inlink->dst->priv; |
298 |
+ int i; |
|
298 | 299 |
|
299 | 300 |
hqdn3d->hsub = av_pix_fmt_descriptors[inlink->format].log2_chroma_w; |
300 | 301 |
hqdn3d->vsub = av_pix_fmt_descriptors[inlink->format].log2_chroma_h; |
... | ... |
@@ -304,7 +305,7 @@ static int config_input(AVFilterLink *inlink) |
304 | 304 |
if (!hqdn3d->line) |
305 | 305 |
return AVERROR(ENOMEM); |
306 | 306 |
|
307 |
- for (int i=0; i<4; i++) { |
|
307 |
+ for (i=0; i<4; i++) { |
|
308 | 308 |
hqdn3d->coefs[i] = precalc_coefs(hqdn3d->strength[i], hqdn3d->depth); |
309 | 309 |
if (!hqdn3d->coefs[i]) |
310 | 310 |
return AVERROR(ENOMEM); |