]> git.sesse.net Git - ffmpeg/commitdiff
avformat/matroskaenc: Avoid "for (int i" syntax for better compatibility
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 5 Aug 2015 23:15:08 +0000 (01:15 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 5 Aug 2015 23:15:08 +0000 (01:15 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/matroskaenc.c

index 703abc3fde4db16aee06cf236be7ea1bbc9ceeff..7f82804a6f0d5edb377c996d0e119a5ef3c80f04 100644 (file)
@@ -2025,7 +2025,8 @@ static int mkv_write_trailer(AVFormatContext *s)
 
         // update stream durations
         if (mkv->stream_durations) {
-            for (int i = 0; i < s->nb_streams; ++i) {
+            int i;
+            for (i = 0; i < s->nb_streams; ++i) {
                 AVStream *st = s->streams[i];
                 double duration_sec = mkv->stream_durations[i] * av_q2d(st->time_base);
                 char duration_string[20] = "";