Index: postproc/rgb2rgb_template.c =================================================================== RCS file: /cvsroot/mplayer/main/postproc/rgb2rgb_template.c,v retrieving revision 1.56 diff -u -r1.56 rgb2rgb_template.c --- postproc/rgb2rgb_template.c 16 Sep 2002 19:39:57 -0000 1.56 +++ postproc/rgb2rgb_template.c 23 Oct 2002 23:33:38 -0000 @@ -364,11 +364,20 @@ #endif while(s < end) { +#ifndef WORDS_BIGENDIAN const int b= *s++; const int g= *s++; const int r= *s++; +#else + const int a= *s++; /*skip*/ + const int r= *s++; + const int g= *s++; + const int b= *s++; +#endif *d++ = (b>>3) | ((g&0xFC)<<3) | ((r&0xF8)<<8); +#ifndef WORDS_BIGENDIAN s++; +#endif } }