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, 13 Mar 2019 23:24:44 +0000 (00:24 +0100)
commit9495228df0288e61f9fa8ebb8ba86c14223aa949
tree7f1672762d081f697e2ed585228eea8e0fc269a8
parent339f40f6181849bb9ecbc8ebffd88b2006e60c8d
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