mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-14 22:22:59 +02:00
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>
This commit is contained in:
parent
229e2631be
commit
9dd94f8379
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user