Cast signed libopenjpeg data values to unsigned before shifting.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 10 Jan 2014 23:03:37 +0000 (00:03 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 10 Jan 2014 23:03:37 +0000 (00:03 +0100)
commit26fc6ffec45c954cd8ca46342ac75cd90bcc7e02
tree439e634e190ac845c47c6cd196e4d380612a5086
parenta1ed1c2193483849df689b105bec0d26c2497999
Cast signed libopenjpeg data values to unsigned before shifting.

This avoids undefined behaviour on left-shift.

Reviewed-by: Michael Bradshaw
libavcodec/libopenjpegdec.c