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 12:18:58 -0000 @@ -11,6 +11,9 @@ #include #include /* for __WORDSIZE */ +#include "../config.h" +#include "../bswap.h" + #ifndef __WORDSIZE // #warning You have misconfigured system and probably will lose performance! #define __WORDSIZE MP_WORDSIZE @@ -364,11 +367,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 } }