avcodec/clearvideo: Check remaining input bits in P macro block loop
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 6 Dec 2018 00:19:37 +0000 (01:19 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 21 Jan 2019 06:53:26 +0000 (07:53 +0100)
commit228f17ced3bd394677f0421f462067a0f287ca8c
tree712664056de7d5962d406fba129fe42ac15c91c0
parent9b5a6bb67ba35b3442667964f9e3a7e330b10bdc
avcodec/clearvideo: Check remaining input bits in P macro block loop

Fixes: Timeout
Fixes: 11083/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CLEARVIDEO_fuzzer-5657180351496192

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