avcodec/parser: Optimize ff_combine_frame() with massivly negative next
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 1 Aug 2019 20:18:43 +0000 (22:18 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 23 Aug 2019 20:26:50 +0000 (22:26 +0200)
commit8a24d2cc304c7f0807bc472dfc39d247040d71c2
tree68f9bcf560d8a028658466277e17d6f327aee016
parent68f30567df5659190bb0515e027be8f1a8116bc5
avcodec/parser: Optimize ff_combine_frame() with massivly negative next

Fixes: Timeout
Fixes: 15558/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PPM_fuzzer-5705273643106304

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