# HG changeset patch # User bcoudurier # Date 1212290262 0 # Node ID b7eeb3590bc90644e300aaa2ce94dce93f633732 # Parent 13061a6174b607d5911cfdd6768b7f639a8c58e8 remove useless casts diff -r 13061a6174b6 -r b7eeb3590bc9 libswscale/rgb2rgb_template.c --- a/libswscale/rgb2rgb_template.c Sat May 31 16:38:02 2008 +0000 +++ b/libswscale/rgb2rgb_template.c Sun Jun 01 03:17:42 2008 +0000 @@ -325,14 +325,14 @@ mm_end = end - 3; while (s < mm_end) { - register uint32_t x= *((uint32_t *)s); + register uint32_t x= *s; *((uint32_t *)d) = ((x>>1)&0x7FE07FE0) | (x&0x001F001F); s+=4; d+=4; } if (s < end) { - register uint16_t x= *((uint16_t *)s); + register uint16_t x= *s; *((uint16_t *)d) = ((x>>1)&0x7FE0) | (x&0x001F); s+=2; d+=2; @@ -936,7 +936,7 @@ #ifdef HAVE_MMX const uint16_t *mm_end; #endif - uint8_t *d = (uint8_t *)dst; + uint8_t *d = dst; const uint16_t *s = (uint16_t *)src; end = s + src_size/2; #ifdef HAVE_MMX @@ -1219,7 +1219,7 @@ #ifdef HAVE_MMX const uint16_t *mm_end; #endif - uint8_t *d = (uint8_t *)dst; + uint8_t *d = dst; const uint16_t *s = (const uint16_t *)src; end = s + src_size/2; #ifdef HAVE_MMX @@ -1297,7 +1297,7 @@ #ifdef HAVE_MMX const uint16_t *mm_end; #endif - uint8_t *d = (uint8_t *)dst; + uint8_t *d = dst; const uint16_t *s = (uint16_t *)src; end = s + src_size/2; #ifdef HAVE_MMX @@ -1366,7 +1366,7 @@ static inline void RENAME(rgb32tobgr32)(const uint8_t *src, uint8_t *dst, long src_size) { long idx = 15 - src_size; - uint8_t *s = (uint8_t *) src-idx, *d = dst-idx; + uint8_t *s = src-idx, *d = dst-idx; #ifdef HAVE_MMX asm volatile( "test %0, %0 \n\t"