avcodec/h264_slice: Fix integer overflow with last_poc
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 6 Apr 2018 22:34:25 +0000 (00:34 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 12 Apr 2018 21:52:59 +0000 (23:52 +0200)
commit8c02cd8ca097871dcd00cf8e08ce51660873f405
treea1b543e0e59f6c8dcd73713f83b8471dc06e48d6
parent0a8133119ca5d087c7c7140d100406ff84c477ee
avcodec/h264_slice: Fix integer overflow with last_poc

Fixes: signed integer overflow: 2147483646 - -2816 cannot be represented in type 'int'
Fixes: crbug 823145

Reported-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_slice.c