aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/yuv2rgb.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-03-01 11:33:10 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-03-01 11:33:10 +0000
commitf78b9c06565a684871402a12b1da6425268c23b9 (patch)
tree20ce2dcee457cc340769c408f0509ac5525347b8 /libswscale/yuv2rgb.c
parent8d2544bd1bc41ba27c1cece8e24c7f497c4d2cf0 (diff)
downloadffmpeg-f78b9c06565a684871402a12b1da6425268c23b9.tar.gz
Fix braindead and broken way to calculate abase, fixes regression tests on
big-endian systems. Originally committed as revision 28773 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/yuv2rgb.c')
-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;