[MPlayer-cvslog] r26957 - trunk/libswscale/rgb2rgb_template.c

bcoudurier subversion at mplayerhq.hu
Sun Jun 1 21:08:16 CEST 2008


Author: bcoudurier
Date: Sun Jun  1 21:08:16 2008
New Revision: 26957

Log:
restore needed cast to correct type with const

Modified:
   trunk/libswscale/rgb2rgb_template.c

Modified: trunk/libswscale/rgb2rgb_template.c
==============================================================================
--- trunk/libswscale/rgb2rgb_template.c	(original)
+++ trunk/libswscale/rgb2rgb_template.c	Sun Jun  1 21:08:16 2008
@@ -325,14 +325,14 @@ static inline void RENAME(rgb16to15)(con
     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;



More information about the MPlayer-cvslog mailing list