aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_hqdn3d.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-27 00:36:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-27 00:36:31 +0200
commit851bac4b06c59c51ad4b7d5c9f503d3aed87a10a (patch)
treeee94f7f42c5efa7a6b99ac378d7229b82436025a /libavfilter/vf_hqdn3d.c
parent17106a7c90902c7cddc5ad516234bd0e37d27732 (diff)
downloadffmpeg-851bac4b06c59c51ad4b7d5c9f503d3aed87a10a.tar.gz
vf_hqdn3d: avoid declaring variable in for()
This should fix compilation with gcc 2.95 and possibly others Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_hqdn3d.c')
-rw-r--r--libavfilter/vf_hqdn3d.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_hqdn3d.c b/libavfilter/vf_hqdn3d.c
index 515af3c624..1eb9ba84a5 100644
--- a/libavfilter/vf_hqdn3d.c
+++ b/libavfilter/vf_hqdn3d.c
@@ -295,6 +295,7 @@ static int query_formats(AVFilterContext *ctx)
static int config_input(AVFilterLink *inlink)
{
HQDN3DContext *hqdn3d = inlink->dst->priv;
+ int i;
hqdn3d->hsub = av_pix_fmt_descriptors[inlink->format].log2_chroma_w;
hqdn3d->vsub = av_pix_fmt_descriptors[inlink->format].log2_chroma_h;
@@ -304,7 +305,7 @@ static int config_input(AVFilterLink *inlink)
if (!hqdn3d->line)
return AVERROR(ENOMEM);
- for (int i=0; i<4; i++) {
+ for (i=0; i<4; i++) {
hqdn3d->coefs[i] = precalc_coefs(hqdn3d->strength[i], hqdn3d->depth);
if (!hqdn3d->coefs[i])
return AVERROR(ENOMEM);