avcodec/h264_direct: Fix overflow in POC comparission
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 13 Feb 2019 23:05:34 +0000 (00:05 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 20 Feb 2019 22:11:41 +0000 (23:11 +0100)
commit5ccf296e74725bc8bdfbfe500d0482daa200b6f3
treed043b597afe1d69b91c65f7c1e163524ed970d4a
parent6bfda984b3d06e50890129a28061323c18f2d73f
avcodec/h264_direct: Fix overflow in POC comparission

Fixes: runtime error: signed integer overflow: 2147421862 - -33624063 cannot be represented in type 'int'
Fixes: 12885/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5733516975800320

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