diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-09-11 00:09:01 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-09-11 00:09:01 +0000 |
commit | fd6cd1c95cb22124e0c812e9af44a62525891693 (patch) | |
tree | 7d7f75d01e7841199ecc44a1f199f508c1a4a45f /libswscale | |
parent | d351b78abdfc155915fdabf86f56b6542b5044c0 (diff) | |
download | mpv-fd6cd1c95cb22124e0c812e9af44a62525891693.tar.bz2 mpv-fd6cd1c95cb22124e0c812e9af44a62525891693.tar.xz |
Fix chroma yuv->rgb tables for jpeg style yuv, this was missed as it
only affects the C code while mmx uses different tables.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27576 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/yuv2rgb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c index 5aa42c046c..e4937a2145 100644 --- a/libswscale/yuv2rgb.c +++ b/libswscale/yuv2rgb.c @@ -880,10 +880,10 @@ int yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int fullRange, } for (i = 0; i < 256; i++) { - c->table_rV[i] = (uint8_t *)table_r + entry_size * div_round (crv * (i-128), 76309); - c->table_gU[i] = (uint8_t *)table_g + entry_size * div_round (cgu * (i-128), 76309); - c->table_gV[i] = entry_size * div_round (cgv * (i-128), 76309); - c->table_bU[i] = (uint8_t *)table_b + entry_size * div_round (cbu * (i-128), 76309); + c->table_rV[i] = (uint8_t *)table_r + entry_size * div_round (crv * (i-128), cy); + c->table_gU[i] = (uint8_t *)table_g + entry_size * div_round (cgu * (i-128), cy); + c->table_gV[i] = entry_size * div_round (cgv * (i-128), cy); + c->table_bU[i] = (uint8_t *)table_b + entry_size * div_round (cbu * (i-128), cy); } av_free(c->yuvTable); |