[MPlayer-cvslog] r26944 - trunk/libswscale/rgb2rgb.c

bcoudurier subversion at mplayerhq.hu
Sun Jun 1 05:25:07 CEST 2008


Author: bcoudurier
Date: Sun Jun  1 05:25:07 2008
New Revision: 26944

Log:
remove useless casts

Modified:
   trunk/libswscale/rgb2rgb.c

Modified: trunk/libswscale/rgb2rgb.c
==============================================================================
--- trunk/libswscale/rgb2rgb.c	(original)
+++ trunk/libswscale/rgb2rgb.c	Sun Jun  1 05:25:07 2008
@@ -372,7 +372,7 @@ void rgb24tobgr32(const uint8_t *src, ui
 void rgb16tobgr32(const uint8_t *src, uint8_t *dst, long src_size)
 {
     const uint16_t *end;
-    uint8_t *d = (uint8_t *)dst;
+    uint8_t *d = dst;
     const uint16_t *s = (const uint16_t *)src;
     end = s + src_size/2;
     while (s < end)
@@ -396,7 +396,7 @@ void rgb16tobgr32(const uint8_t *src, ui
 void rgb16tobgr24(const uint8_t *src, uint8_t *dst, long src_size)
 {
     const uint16_t *end;
-    uint8_t *d = (uint8_t *)dst;
+    uint8_t *d = dst;
     const uint16_t *s = (const uint16_t *)src;
     end = s + src_size/2;
     while (s < end)
@@ -446,7 +446,7 @@ void rgb16tobgr15(const uint8_t *src, ui
 void rgb15tobgr32(const uint8_t *src, uint8_t *dst, long src_size)
 {
     const uint16_t *end;
-    uint8_t *d = (uint8_t *)dst;
+    uint8_t *d = dst;
     const uint16_t *s = (const uint16_t *)src;
     end = s + src_size/2;
     while (s < end)
@@ -470,7 +470,7 @@ void rgb15tobgr32(const uint8_t *src, ui
 void rgb15tobgr24(const uint8_t *src, uint8_t *dst, long src_size)
 {
     const uint16_t *end;
-    uint8_t *d = (uint8_t *)dst;
+    uint8_t *d = dst;
     const uint16_t *s = (const uint16_t *)src;
     end = s + src_size/2;
     while (s < end)



More information about the MPlayer-cvslog mailing list