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>
Wed, 13 Mar 2019 23:24:44 +0000 (00:24 +0100)
commitd25f388584a36b709c780b4bf91de2cabfe6137f
tree049d657fe845f24edb1e5d9ea3dd32a26443cc0e
parent1a82246caed8496aa932a668dce6139d220f68ca
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