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>
Wed, 23 Aug 2017 11:15:17 +0000 (13:15 +0200)
commit7802a9918de59493e51b1e6a5ff5bcc63c9b5dc9
treeca19f8507d2a5e436f290ef729b74cf60287de47
parent257e6e3ecaf13cfbdd864eaec07b1f72465c9d60
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