avformat/vividas: Check and require 1 video stream
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 5 Nov 2019 20:52:41 +0000 (21:52 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Nov 2019 23:07:07 +0000 (00:07 +0100)
commit3e5a528bbe85a3a00640bc2739c11ee07eb05485
tree190c31457a47ea4d95361532eb2ba74c9c02eb38
parentd82ab96e76bfec6568d059df7c8591dda4317c62
avformat/vividas: Check and require 1 video stream

The decoder hardcodes that audio is stream_id = 1 so it does not
currently work with more or less than 1 video stream at st=0

Fixes: assertion failure
Fixes: 18602/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-6259277199310848

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