Index: postproc/rgb2rgb_template.c =================================================================== RCS file: /cvsroot/mplayer/main/postproc/rgb2rgb_template.c,v retrieving revision 1.68 diff -u -r1.68 rgb2rgb_template.c --- postproc/rgb2rgb_template.c 1 May 2004 20:15:21 -0000 1.68 +++ postproc/rgb2rgb_template.c 2 May 2004 10:33:26 -0000 @@ -1529,6 +1529,17 @@ } #else +#if defined(WORDS_BIGENDIAN) && (WORDS_BIGENDIAN == 1) + int i, *idst = (int32_t *) dst; + const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc; + for(i = 0; i < chromWidth; i++){ + *idst++ = (yc[0] << 24)+ (uc[0] << 16) + + (yc[1] << 8) + (vc[0] << 0); + yc += 2; + uc++; + vc++; + } +#else int i, *idst = (int32_t *) dst; const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc; for(i = 0; i < chromWidth; i++){ @@ -1540,6 +1551,7 @@ } #endif #endif +#endif if((y&(vertLumPerChroma-1))==(vertLumPerChroma-1) ) { usrc += chromStride; @@ -1631,6 +1643,17 @@ } #else +#if defined(WORDS_BIGENDIAN) && (WORDS_BIGENDIAN == 1) + int i, *idst = (int32_t *) dst; + const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc; + for(i = 0; i < chromWidth; i++){ + *idst++ = (uc[0] << 24)+ (yc[0] << 16) + + (vc[0] << 8) + (yc[1] << 0); + yc += 2; + uc++; + vc++; + } +#else int i, *idst = (int32_t *) dst; const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc; for(i = 0; i < chromWidth; i++){ @@ -1642,6 +1665,7 @@ } #endif #endif +#endif if((y&(vertLumPerChroma-1))==(vertLumPerChroma-1) ) { usrc += chromStride;