mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
avformat/mov: Do not use reference stream in mov_read_sidx() if there is no reference stream
Fixes: NULL pointer dereference Fixes: clusterfuzz-testcase-minimized-audio_decoder_fuzzer-5634316373721088 Reported-by: Chris Cunningham <chcunningham@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit b0d8b7cb8e86367178ef0c35dcae359d820c3b27) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
1a82246cae
commit
d25f388584
@ -5050,7 +5050,7 @@ static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
}
|
||||
}
|
||||
}
|
||||
for (i = 0; i < c->fc->nb_streams; i++) {
|
||||
if (ref_st) for (i = 0; i < c->fc->nb_streams; i++) {
|
||||
st = c->fc->streams[i];
|
||||
sc = st->priv_data;
|
||||
if (!sc->has_sidx) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user