avcodec/flacdec: Fix signed integer overflow in decode_subframe_fixed()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Dec 2016 16:05:43 +0000 (17:05 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Dec 2016 16:32:54 +0000 (17:32 +0100)
commit31d46dc97dc33834b899ca059c01137e9c4ec60d
tree5ed11b1168ac3e4b0cbabd117d987c869b70a14f
parent5790ce62732fc4f384bb109b4d7cdf313e7310b8
avcodec/flacdec: Fix signed integer overflow in decode_subframe_fixed()

Fixes undefined behavior
Fixes: 640912-media

Found-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 83a75bf6c31b3c0ce2ca7e1426d1f2e3df634239)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/flacdec.c