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>
Sun, 17 Jun 2018 23:16:03 +0000 (01:16 +0200)
commitfffc77b472800a75eed147f8510ab52b87631256
tree83385438e48f9785cee5aa5a79cfd3370f8514d1
parent0f868badcfdb40711e1158b863bfc66d97b028b8
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>
(cherry picked from commit 8c02cd8ca097871dcd00cf8e08ce51660873f405)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_slice.c