diff options
author | Alex Converse <aconverse@google.com> | 2011-03-28 13:54:18 -0700 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-03-31 07:28:20 +0200 |
commit | 9dd94f8379a0f7b3c820bf73c45fa888971c7432 (patch) | |
tree | 02629feffc6e6a9044ce0658d18afadb5bad16f6 | |
parent | 229e2631be528c595650a7568c1d4df8af9c4944 (diff) | |
download | ffmpeg-9dd94f8379a0f7b3c820bf73c45fa888971c7432.tar.gz |
mov: Add support for zero-sized stsc runs.
A zero sized stsc run doesn't make a lot of sense but the spec does not
prohibit them and MPlayer VLC demuxers support them.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 94f19a684a..b57c1aab1c 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1553,7 +1553,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st) for (i = 0; i < sc->chunk_count; i++) { current_offset = sc->chunk_offsets[i]; - if (stsc_index + 1 < sc->stsc_count && + while (stsc_index + 1 < sc->stsc_count && i + 1 == sc->stsc_data[stsc_index + 1].first) stsc_index++; for (j = 0; j < sc->stsc_data[stsc_index].count; j++) { |