summaryrefslogtreecommitdiff
path: root/libavfilter/vaf_spectrumsynth.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-01-15 16:51:54 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-01-15 16:51:54 +0100
commit48f5244df7ea5f764a63402147235cfa5355d388 (patch)
treea36c8ffb9f4c1f97f24a4b13f1ce7c0b2003a0ac /libavfilter/vaf_spectrumsynth.c
parentcfda1bea4c18ec1edbc11ecc465f788b02851488 (diff)
avfilter/vaf_spectrumsynth: Fix mixed declaration and statment
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/vaf_spectrumsynth.c')
-rw-r--r--libavfilter/vaf_spectrumsynth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vaf_spectrumsynth.c b/libavfilter/vaf_spectrumsynth.c
index 76788e1f2c..ab9a69bd8f 100644
--- a/libavfilter/vaf_spectrumsynth.c
+++ b/libavfilter/vaf_spectrumsynth.c
@@ -392,6 +392,7 @@ static int try_push_frame(AVFilterContext *ctx, int x)
if (ch == s->channels - 1) {
float *dst;
+ int c;
out = ff_get_audio_buffer(outlink, s->win_size);
if (!out) {
@@ -402,7 +403,7 @@ static int try_push_frame(AVFilterContext *ctx, int x)
out->pts = s->pts;
s->pts += s->win_size;
- for (int c = 0; c < s->channels; c++) {
+ for (c = 0; c < s->channels; c++) {
dst = (float *)out->extended_data[c];
buf = (float *)s->buffer->extended_data[c];