summaryrefslogtreecommitdiff
path: root/postproc/swscale_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-02-21 17:48:00 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-02-21 17:48:00 +0000
commitdf3c183a7b90e70ae6bfae2a6efdb5aaf220fb88 (patch)
treeb8fd9790a483de9e9d0d3544207de43a90716f7b /postproc/swscale_template.c
parent1e1c4fe926d2c808494c20abfbb5b62b1268f98d (diff)
fixing bgr32 output on big-endian systems
Originally committed as revision 4794 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/swscale_template.c')
-rw-r--r--postproc/swscale_template.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c
index c00e3e08eb..a14bc97d54 100644
--- a/postproc/swscale_template.c
+++ b/postproc/swscale_template.c
@@ -992,6 +992,9 @@ FULL_YSCALEYUV2RGB
#else
if(dstFormat==IMGFMT_BGR32)
{
+#ifdef WORDS_BIGENDIAN
+ dest++;
+#endif
int i;
for(i=0;i<dstW;i++){
// vertical linear interpolation && yuv2rgb in a single step:
@@ -1115,6 +1118,9 @@ FULL_YSCALEYUV2RGB
#else
if(dstFormat==IMGFMT_BGR32)
{
+#ifdef WORDS_BIGENDIAN
+ dest++;
+#endif
int i;
for(i=0; i<dstW-1; i+=2){
// vertical linear interpolation && yuv2rgb in a single step:
@@ -1393,6 +1399,9 @@ static inline void RENAME(yuv2rgb1)(uint16_t *buf0, uint16_t *uvbuf0, uint16_t *
if(dstFormat==IMGFMT_BGR32)
{
+#ifdef WORDS_BIGENDIAN
+ dest++;
+#endif
int i;
for(i=0; i<dstW-1; i+=2){
// vertical linear interpolation && yuv2rgb in a single step: