[FFmpeg-cvslog] avformat/replaygain: fix mixed declaration and statement

Michael Niedermayer git at videolan.org
Fri Apr 18 02:12:41 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Apr 18 01:16:27 2014 +0200| [97751e1324deb91522b1d73307dab1a88c8d726c] | committer: Michael Niedermayer

avformat/replaygain: fix mixed declaration and statement

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavformat/replaygain.c b/libavformat/replaygain.c
index eccbb01..8b8c81a 100644
--- a/libavformat/replaygain.c
+++ b/libavformat/replaygain.c
@@ -71,11 +71,12 @@ int ff_replaygain_export_raw(AVStream *st, int32_t tg, uint32_t tp,
 {
     AVPacketSideData *sd, *tmp;
     AVReplayGain *replaygain;
+    int i;
 
     if (tg == INT32_MIN && ag == INT32_MIN)
         return 0;
 
-    for (int i = 0; i < st->nb_side_data; i++) {
+    for (i = 0; i < st->nb_side_data; i++) {
         AVPacketSideData *src_sd = &st->side_data[i];
 
         if (src_sd->type == AV_PKT_DATA_REPLAYGAIN)



More information about the ffmpeg-cvslog mailing list