avcodec/vp3: Check that theora is theora
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 21 Jul 2019 22:41:06 +0000 (00:41 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Aug 2019 19:16:28 +0000 (21:16 +0200)
commit7821480db5e378ccd827e1445aba7346cde60784
treee945dce6547e51d9237255b2853976265556717a
parent7f71ebded4be2d290b5d606de6256ceac0c18b8e
avcodec/vp3: Check that theora is theora

Theora is forced to be non zero if it is zero and a sample
is asked for, as suggested by reimar

Fixes: Timeout (2min -> 600ms)
Fixes: 15366/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_THEORA_fuzzer-5737849938247680

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit b4bf7226aff28e9ca379c5a3dedf745a2d316739)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vp3.c