Mercurial > mplayer.hg
changeset 28738:730912eb74d3
Fix braindead and broken way to calculate abase, fixes regression tests on
big-endian systems.
author | reimar |
---|---|
date | Sun, 01 Mar 2009 11:33:10 +0000 |
parents | 156052eef5f0 |
children | d6b317bddd62 |
files | libswscale/yuv2rgb.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/yuv2rgb.c Sun Mar 01 11:22:31 2009 +0000 +++ b/libswscale/yuv2rgb.c Sun Mar 01 11:33:10 2009 +0000 @@ -659,7 +659,7 @@ 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;