mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-24 15:57:00 +00:00
avformat/mov: Skip stsd adjustment without chunks
Fixes: Assertion failure
Fixes: clusterfuzz-testcase-minimized-media_pipeline_integration_fuzzer-5683096400822272
Found-by: Clusterfuzz
Reported-by: Dan Sanders <sandersd@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 18a567c369
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
9b4004c054
commit
05a90821d0
@ -7879,6 +7879,7 @@ static int mov_seek_stream(AVFormatContext *s, AVStream *st, int64_t timestamp,
|
||||
}
|
||||
|
||||
/* adjust stsd index */
|
||||
if (sc->chunk_count) {
|
||||
time_sample = 0;
|
||||
for (i = 0; i < sc->stsc_count; i++) {
|
||||
int64_t next = time_sample + mov_get_stsc_samples(sc, i);
|
||||
@ -7890,6 +7891,7 @@ static int mov_seek_stream(AVFormatContext *s, AVStream *st, int64_t timestamp,
|
||||
av_assert0(next == (int)next);
|
||||
time_sample = next;
|
||||
}
|
||||
}
|
||||
|
||||
return sample;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user