avformat/mov: Do not use reference stream in mov_read_sidx() if there is no reference...
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 12 Feb 2019 22:28:35 +0000 (23:28 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Mar 2019 09:42:51 +0000 (10:42 +0100)
commit5f799f0cee95fc92fdcaba543f491be997f5c52a
treef8c0409f14d9d273748cc9a95e333aed22452e2f
parentd5a946615ffc7d7f63485b67ce61f0c9b9fab6cb
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>
libavformat/mov.c