# HG changeset patch # User michael # Date 1014313680 0 # Node ID 68e7ed0c22be636cefc10089909492140f6acffb # Parent c85ee559fc3def9ec02cf5a383aed9f0bb6a9172 fixing bgr32 output on big-endian systems diff -r c85ee559fc3d -r 68e7ed0c22be postproc/swscale.c --- a/postproc/swscale.c Thu Feb 21 17:22:03 2002 +0000 +++ b/postproc/swscale.c Thu Feb 21 17:48:00 2002 +0000 @@ -294,6 +294,9 @@ { if(dstFormat==IMGFMT_BGR32) { +#ifdef WORDS_BIGENDIAN + dest++; +#endif int i; for(i=0; i<(dstW>>1); i++){ int j; diff -r c85ee559fc3d -r 68e7ed0c22be postproc/swscale_template.c --- a/postproc/swscale_template.c Thu Feb 21 17:22:03 2002 +0000 +++ b/postproc/swscale_template.c Thu Feb 21 17:48:00 2002 +0000 @@ -992,6 +992,9 @@ #else if(dstFormat==IMGFMT_BGR32) { +#ifdef WORDS_BIGENDIAN + dest++; +#endif int i; for(i=0;i