changeset 26925:3f6d2ca29727

restore needed cast to correct type with const
author bcoudurier
date Sun, 01 Jun 2008 19:08:16 +0000
parents ca50c4a72f68
children 1e6241274552
files libswscale/rgb2rgb_template.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;