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:39:03 +0000 (10:39 +0100)
commit57739859028d13229d34347adfa5bdaa73fbc840
treefa7dd1ad6b8d13c10ceb3a1f591a97acb5f8cd2f
parent0213519addc3a367b4c1e8681941b12febcefe7f
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