Commit c046f89c authored by reimar's avatar reimar

Fix braindead and broken way to calculate abase, fixes regression tests on

big-endian systems.


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@28773 b3059339-0415-0410-9bf9-f77b7e298cf2
parent f23783bf
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment