avformat/mlvdec: fail reading a packet with 0 streams
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 31 May 2020 12:30:43 +0000 (14:30 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Jun 2020 20:01:12 +0000 (22:01 +0200)
commit5bd5c3108786bf69f108c55c375f1956f67ca7a4
tree1aff8b0ff327bde889db3bc37f3b46fa7212c509
parent1ba8484559661dfdbca36dbc17b203f33f62e26c
avformat/mlvdec: fail reading a packet with 0 streams

Fixes: NULL pointer dereference
Fixes: 22604/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5667739074297856.fuzz

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mlvdec.c