# HG changeset patch # User bcoudurier # Date 1212347296 0 # Node ID 3f6d2ca297276b14060aa7cd4a86129a89cf8dd7 # Parent ca50c4a72f68e0554b404b51aec4ddeb65666ef6 restore needed cast to correct type with const diff -r ca50c4a72f68 -r 3f6d2ca29727 libswscale/rgb2rgb_template.c --- a/libswscale/rgb2rgb_template.c Sun Jun 01 18:14:56 2008 +0000 +++ b/libswscale/rgb2rgb_template.c Sun Jun 01 19:08:16 2008 +0000 @@ -325,14 +325,14 @@ mm_end = end - 3; while (s < mm_end) { - register uint32_t x= *s; + register uint32_t x= *((const uint32_t*)s); *((uint32_t *)d) = ((x>>1)&0x7FE07FE0) | (x&0x001F001F); s+=4; d+=4; } if (s < end) { - register uint16_t x= *s; + register uint16_t x= *((const uint16_t*)s); *((uint16_t *)d) = ((x>>1)&0x7FE0) | (x&0x001F); s+=2; d+=2;