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 22:35:15 +0000 (00:35 +0200)
commit41458534aa8890810b678bcdb4c1c04f38b72231
treeab00a4aafbf3fc071861974a2cb0990a364ce2ca
parent9b56e65e8c124cb2972295f8d80519c8409ab190
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