diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-06 01:15:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-06 01:15:08 +0200 |
commit | ace837665362297a761ca92309ece8d7f4fa725a (patch) | |
tree | c018932558fb45be0e32cd6a777548c35d661d48 /libavformat/matroskaenc.c | |
parent | 5e8e121fccc247942a42b609f1e32060950c1a65 (diff) | |
download | ffmpeg-ace837665362297a761ca92309ece8d7f4fa725a.tar.gz |
avformat/matroskaenc: Avoid "for (int i" syntax for better compatibility
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r-- | libavformat/matroskaenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 703abc3fde..7f82804a6f 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -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] = ""; |