Mercurial > mplayer.hg
diff libmpcodecs/vd_lcl.c @ 8451:fb88ccbc5ccc
compiler warning fixes
based on patch by Dominik Mierzejewski <dominik@rangers.eu.org>
author | arpi |
---|---|
date | Sat, 14 Dec 2002 17:56:35 +0000 |
parents | 95740a8fc77f |
children | 2ed9b2143f94 |
line wrap: on
line diff
--- a/libmpcodecs/vd_lcl.c Sat Dec 14 17:12:40 2002 +0000 +++ b/libmpcodecs/vd_lcl.c Sat Dec 14 17:56:35 2002 +0000 @@ -491,7 +491,8 @@ for (row = 0; row < height; row++) { pixel_ptr = row * width * 3; yq = encoded[pixel_ptr++]; - uqvq = encoded[pixel_ptr++] + (encoded[pixel_ptr++] << 8); + uqvq = encoded[pixel_ptr++]; + uqvq+=(encoded[pixel_ptr++] << 8); for (col = 1; col < width; col++) { encoded[pixel_ptr] = yq -= encoded[pixel_ptr]; uqvq -= (encoded[pixel_ptr+1] | (encoded[pixel_ptr+2]<<8)); @@ -505,7 +506,8 @@ for (row = 0; row < height; row++) { pixel_ptr = row * width * 3; yq = encoded[pixel_ptr++]; - uqvq = encoded[pixel_ptr++] + (encoded[pixel_ptr++] << 8); + uqvq = encoded[pixel_ptr++]; + uqvq+=(encoded[pixel_ptr++] << 8); for (col = 1; col < width; col++) { encoded[pixel_ptr] = yq -= encoded[pixel_ptr]; uqvq -= (encoded[pixel_ptr+1] | (encoded[pixel_ptr+2]<<8));