avcodec/rv10: Execute whole size check earlier for rv20
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 10 Apr 2021 16:43:50 +0000 (18:43 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 18:53:56 +0000 (20:53 +0200)
commitf4c5abe2d011f645d12226ec660bf70d94c73e4f
treeb86e4e1e28eb53412c1a1aefe733e6de36a6bd5c
parent3d2af8afefad5c84d53117a99af6964e7d8f4db8
avcodec/rv10: Execute whole size check earlier for rv20

Fixes: Timeout
Fixes: 31380/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RV20_fuzzer-5230899257016320

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 f8556b632f4b29e54067ecba6f71ceb8af3806e4)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/rv10.c