swscale: fix sign extensions in yuv planar conversion
authorVittorio Giovara <vittorio.giovara@gmail.com>
Fri, 17 Oct 2014 13:31:35 +0000 (14:31 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Sat, 18 Oct 2014 15:15:10 +0000 (16:15 +0100)
commitfc1eda543c6ef043300612db90da5cfd972af650
tree2bfac38707aabad2408f2b25ebc47d79cc69ab4d
parentb7c77912b62163b3b46ce93fe42fff3c83604c82
swscale: fix sign extensions in yuv planar conversion

Casting the left-most byte to unsigned avoids an undefined
result of the shift by 24 if bit 7 is set.

yuvPlanartouyvy_c and yuvPlanartoyuy2_c are affected.

CC: libav-stable@libav.org
Bug-Id: CID 732281 / CID 732282
libswscale/rgb2rgb_template.c