swscale/utils: Fix for runtime error: left shift of negative value -1
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 4 Dec 2015 20:44:05 +0000 (21:44 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Dec 2015 01:51:27 +0000 (02:51 +0100)
commitaf4454561338dd9bccf83c9e96e4c48de4dc0119
tree577774a7be9da81b1da3c512d3ceb23f40eddf8d
parent10fc3d690c8b6c326e3fb11694e17519e4226722
swscale/utils: Fix for runtime error: left shift of negative value -1

Fixes: c106b36fa36db8ff8f3ed0c82be7bea2/asan_heap-oob_32699f0_6321_467b9a1d7e03d7cfd310b7e65dc53bcc.mov

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 325b59368dae3c3f2f5cc39873002b4cf133ccbc)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libswscale/utils.c