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>
Sun, 24 Mar 2019 09:38:51 +0000 (10:38 +0100)
commit8ddad9f9cdac4bf05a455fe5bb3efdab5957d1e4
treeb8a80f4a740a2b7b5b557fe3bea525c55011e56e
parent1613b1669d023cb81c832b209b817e783262e8e2
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>
(cherry picked from commit 5ccf296e74725bc8bdfbfe500d0482daa200b6f3)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_direct.c