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>
Mon, 5 Jun 2017 21:16:54 +0000 (23:16 +0200)
commit6636b35ef0d0607344a38fd5d66cb13db8287bba
tree1b5907643279356f5fada22d2bc4c08c96518e86
parent195b5b6cea072741f191f3c2ec981f5f606d6993
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