[MPlayer-cvslog] r21773 - trunk/libswscale/yuv2rgb.c

lucabe subversion at mplayerhq.hu
Tue Dec 26 17:28:34 CET 2006


Author: lucabe
Date: Tue Dec 26 17:28:34 2006
New Revision: 21773

Modified:
   trunk/libswscale/yuv2rgb.c

Log:
Add some other casts, to remove void pointers arithmetic


Modified: trunk/libswscale/yuv2rgb.c
==============================================================================
--- trunk/libswscale/yuv2rgb.c	(original)
+++ trunk/libswscale/yuv2rgb.c	Tue Dec 26 17:28:34 2006
@@ -832,10 +832,10 @@
     }
 
     for (i = 0; i < 256; i++) {
-	c->table_rV[i] = table_r + entry_size * div_round (crv * (i-128), 76309);
-	c->table_gU[i] = table_g + entry_size * div_round (cgu * (i-128), 76309);
+	c->table_rV[i] = (uint8_t *)table_r + entry_size * div_round (crv * (i-128), 76309);
+	c->table_gU[i] = (uint8_t *)table_g + entry_size * div_round (cgu * (i-128), 76309);
 	c->table_gV[i] = entry_size * div_round (cgv * (i-128), 76309);
-	c->table_bU[i] = table_b + entry_size * div_round (cbu * (i-128), 76309);
+	c->table_bU[i] = (uint8_t *)table_b + entry_size * div_round (cbu * (i-128), 76309);
     }
 
     av_free(c->yuvTable);



More information about the MPlayer-cvslog mailing list