avcodec/proresdec2: decode picture header before frame allocation
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Mar 2019 19:04:12 +0000 (20:04 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 31 Mar 2019 21:23:52 +0000 (23:23 +0200)
commit468ae6a734b2db5fcfc9596770516d76ca8b2818
tree62410543bf8e7c5c5771c1fdf8a527b792594e00
parent4f5e660e69545bd54955002c13dcbe4dbddb1dc4
avcodec/proresdec2: decode picture header before frame allocation

Fixes: Timeout (21sec -> 0.3sec)
Fixes: 13716/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PRORES_fuzzer-5755593333145600

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/proresdec2.c