avcodec/pafvideo: Check packet size and frame code before ff_reget_buffer()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Jun 2017 11:38:02 +0000 (13:38 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 6 Jun 2017 01:44:35 +0000 (03:44 +0200)
commitb7904b58afdd12bf0dac41ee6c77f895c3af05bc
tree90b1ddefcc56ea81fc27666d06ee01a25ec23427
parentaae731b9d39f18ee7d42e632a0139187435c35b6
avcodec/pafvideo: Check packet size and frame code before ff_reget_buffer()

Fixes 1745/clusterfuzz-testcase-minimized-6160693365571584
Fixes: Timeout

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