diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-16 00:06:15 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-16 00:06:15 +0200 |
commit | e240d01c120eb8a83b2b3020f0153bf509d6b136 (patch) | |
tree | 78819f0c0f520a84a4404307d03b033b9bd64fe7 | |
parent | 3e73d1429045cc2985772391e1f36a034650880d (diff) | |
download | ffmpeg-e240d01c120eb8a83b2b3020f0153bf509d6b136.tar.gz |
avformat/matroskadec: fix declaration after statement
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/matroskadec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 6fa8229ccd..ec43526727 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -3233,7 +3233,9 @@ static int64_t webm_dash_manifest_compute_bandwidth(AVFormatContext *s, int64_t MatroskaDemuxContext *matroska = s->priv_data; AVStream *st = s->streams[0]; double bandwidth = 0.0; - for (int i = 0; i < st->nb_index_entries; i++) { + int i; + + for (i = 0; i < st->nb_index_entries; i++) { int64_t prebuffer_ns = 1000000000; int64_t time_ns = st->index_entries[i].timestamp * matroska->time_scale; double nano_seconds_per_second = 1000000000.0; |