summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-01 11:33:10 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-01 11:33:10 +0000
commit25a27fd17aa7a3791a370b3afcf44b9d0b4db86b (patch)
treed484ca41910f877944abaf228554579e39d17e43 /libswscale
parentc003bcdcabbae1f799ad7c6309e9a09b1e8c02c7 (diff)
downloadmpv-25a27fd17aa7a3791a370b3afcf44b9d0b4db86b.tar.bz2
mpv-25a27fd17aa7a3791a370b3afcf44b9d0b4db86b.tar.xz
Fix braindead and broken way to calculate abase, fixes regression tests on
big-endian systems. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28773 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/yuv2rgb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index 0a8cd99a97..65af412c2c 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -659,7 +659,7 @@ av_cold int sws_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4], int
rbase = base + (isRgb ? 16 : 0);
gbase = base + 8;
bbase = base + (isRgb ? 0 : 16);
- abase = (c->dstFormat == PIX_FMT_RGBA || c->dstFormat == PIX_FMT_BGRA) ? 24 : 0;
+ abase = (base + 24) & 31;
c->yuvTable = av_malloc(1024*3*4);
y_table32 = c->yuvTable;
yb = -(384<<16) - oy;