avcodec/vp3: Check version in all cases when VP4 code is not built
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 30 Nov 2021 18:46:17 +0000 (19:46 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 1 Dec 2021 16:44:56 +0000 (17:44 +0100)
commit96caa01f130526cb420d0706a40fb63695153128
tree02a75cfcce9d28b7f4c0012217d36f46231e7a2c
parentdb27a350129aa9f1fe5670cbf9118a78193d89cf
avcodec/vp3: Check version in all cases when VP4 code is not built

Fixes: out of array read
Fixes: 40284/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP3_fuzzer-4599568176644096

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vp3.c