avcodec/clearvideo: Check remaining data in P frames
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 8 Mar 2019 00:42:06 +0000 (01:42 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Mar 2019 08:01:42 +0000 (09:01 +0100)
commit7ce56329e71fc75512ef82f4794c43b629b8c488
treedde45f9b7811f1205c4a9ac709416bf6ec5204a3
parentdbef08b60f44469228d37c63ede587490492acb2
avcodec/clearvideo: Check remaining data in P frames

Fixes: Timeout (19sec -> 419msec)
Fixes: 13411/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CLEARVIDEO_fuzzer-5733153811988480

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