avcodec/h264_parse: Use 64bit for expectedpoc and expected_delta_per_poc_cycle
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 23 May 2019 21:17:35 +0000 (23:17 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 12 Jun 2019 10:01:26 +0000 (12:01 +0200)
commit4896fa18add7636ea9986edde51493331f1fb01e
tree43da729760dec98f78d6a7da50403bc5e1f42d0a
parent8f4963ad25ac6c71c126ac90c240b1f88ebf0312
avcodec/h264_parse: Use 64bit for expectedpoc and expected_delta_per_poc_cycle

Fixes: signed integer overflow: -2142516591 + -267814575 cannot be represented in type 'int'
Fixes: 14450/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5716105319940096

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/h264_parse.c