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, 14 Feb 2019 20:55:43 +0000 (21:55 +0100)
commitb0d8b7cb8e86367178ef0c35dcae359d820c3b27
tree7af974a665273755043c683edf5893c2404bd495
parentf1f66df6a204fdc08b8763004de2df3e20bab8f3
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>
libavformat/mov.c