avformat/replaygain: fix mixed declaration and statement
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 17 Apr 2014 23:16:27 +0000 (01:16 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 17 Apr 2014 23:16:27 +0000 (01:16 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/replaygain.c

index eccbb01..8b8c81a 100644 (file)
@@ -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)