summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xine-utils/color.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xine-utils/color.c b/src/xine-utils/color.c
index 4e1e7b9ef..46a7a2ca0 100644
--- a/src/xine-utils/color.c
+++ b/src/xine-utils/color.c
@@ -61,7 +61,7 @@
* instructions), these macros will automatically map to those special
* instructions.
*
- * $Id: color.c,v 1.26 2005/05/07 09:11:40 valtri Exp $
+ * $Id: color.c,v 1.27 2005/07/03 20:22:10 miguelfreitas Exp $
*/
#include "xine_internal.h"
@@ -495,8 +495,8 @@ static void vscale_chroma_line (unsigned char *dst, int pitch,
/* process blocks of 4 pixels */
for (x=0; x < (width / 4); x++) {
- n1 = *(((unsigned int *) src1)); src1 = ((unsigned int *) src1) + 1;
- n2 = *(((unsigned int *) src2)); src2 = ((unsigned int *) src2) + 1;
+ n1 = *((unsigned int *) src1); src1 = (unsigned char *)(((unsigned int *) src1) + 1);
+ n2 = *((unsigned int *) src2); src2 = (unsigned char *)(((unsigned int *) src2) + 1);
n3 = (n1 & 0xFF00FF00) >> 8;
n4 = (n2 & 0xFF00FF00) >> 8;
n1 &= 0x00FF00FF;