mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-01 18:21:04 +00:00
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
This commit is contained in:
parent
8d2544bd1b
commit
f78b9c0656
@ -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);
|
rbase = base + (isRgb ? 16 : 0);
|
||||||
gbase = base + 8;
|
gbase = base + 8;
|
||||||
bbase = base + (isRgb ? 0 : 16);
|
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);
|
c->yuvTable = av_malloc(1024*3*4);
|
||||||
y_table32 = c->yuvTable;
|
y_table32 = c->yuvTable;
|
||||||
yb = -(384<<16) - oy;
|
yb = -(384<<16) - oy;
|
||||||
|
Loading…
Reference in New Issue
Block a user