[FFmpeg-cvslog] avfilter/vaf_spectrumsynth: Fix mixed declaration and statment

Michael Niedermayer git at videolan.org
Fri Jan 15 16:55:46 CET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Jan 15 16:51:54 2016 +0100| [48f5244df7ea5f764a63402147235cfa5355d388] | committer: Michael Niedermayer

avfilter/vaf_spectrumsynth: Fix mixed declaration and statment

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=48f5244df7ea5f764a63402147235cfa5355d388
---

 libavfilter/vaf_spectrumsynth.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vaf_spectrumsynth.c b/libavfilter/vaf_spectrumsynth.c
index 76788e1..ab9a69b 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];
 



More information about the ffmpeg-cvslog mailing list