avcodec/h2645_parse: Use av_fast_realloc() for nals array
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 5 Oct 2019 16:19:39 +0000 (18:19 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Oct 2019 18:00:59 +0000 (20:00 +0200)
commit22bec0d33f4231487547581a1f77e2e8e6eade88
tree34c7063038782f86c104096068266291a5d76765
parente3650dcfc9cde6ceccf7bbc225962da196e2a386
avcodec/h2645_parse: Use av_fast_realloc() for nals array

Fixes: Timeout (17sec ->281ms)
Fixes: 17833/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5638346914660352

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h2645_parse.c
libavcodec/h2645_parse.h