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>
Sun, 4 Jun 2017 11:40:54 +0000 (13:40 +0200)
commitfaa5a2181df53b5226f998a20b735798addcd365
treea2a261045ed025858d124a2a41b6dab984b7f58e
parent136ce8baa4fc16cf38690cb457f7356c00e00a28
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>
libavcodec/pafvideo.c