avcodec/mvha: Check remaining bits in VLC decode loop
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 15 Jan 2020 21:13:14 +0000 (22:13 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 9 Feb 2020 22:33:18 +0000 (23:33 +0100)
commitcce37a22bc319c4b9e49d2b907841d9ec3f98c56
treedb16b0d936267aca4a2b38f7e2b91ea5cc08edfb
parenta98eeb0c1e867238905ed095b48184f706adf328
avcodec/mvha: Check remaining bits in VLC decode loop

Fixes: timeout (252sec -> 170msec)
Fixes: 20023/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MVHA_fuzzer-5681192565473280

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