summaryrefslogtreecommitdiffstats
path: root/postproc/swscale_template.c
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-21 17:48:00 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-21 17:48:00 +0000
commitd0b24c83623a25832c3c4e857805a58b3e732cb7 (patch)
tree41a8de60f946adc0adf17bc867cdc4fe2e14f402 /postproc/swscale_template.c
parent64f2fee0a90c4da81715515b15afe3a50797b7fc (diff)
downloadmpv-d0b24c83623a25832c3c4e857805a58b3e732cb7.tar.bz2
mpv-d0b24c83623a25832c3c4e857805a58b3e732cb7.tar.xz
fixing bgr32 output on big-endian systems
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4794 b3059339-0415-0410-9bf9-f77b7e298cf2
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: