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

Michael Niedermayer michaelni at gmx.at
Sun Jun 1 17:24:19 CEST 2008


On Sun, Jun 01, 2008 at 05:17:42AM +0200, bcoudurier wrote:
> Author: bcoudurier
> Date: Sun Jun  1 05:17:42 2008
> New Revision: 26941
> 
> Log:
> remove useless casts
> 
> 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 05:17:42 2008
> @@ -325,14 +325,14 @@ static inline void RENAME(rgb16to15)(con
>      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;

These 2 were not useless

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you really think that XML is the answer, then you definitly missunderstood
the question -- Attila Kinali
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cvslog/attachments/20080601/a7205f9e/attachment.pgp>


More information about the MPlayer-cvslog mailing list