Commit 225783f7 authored by michael's avatar michael

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: file:///var/local/repositories/mplayer/trunk/libswscale@27576 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 53e08735
...@@ -880,10 +880,10 @@ int yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int fullRange, ...@@ -880,10 +880,10 @@ int yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int fullRange,
} }
for (i = 0; i < 256; i++) { for (i = 0; i < 256; i++) {
c->table_rV[i] = (uint8_t *)table_r + entry_size * div_round (crv * (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), 76309); 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), 76309); 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), 76309); c->table_bU[i] = (uint8_t *)table_b + entry_size * div_round (cbu * (i-128), cy);
} }
av_free(c->yuvTable); av_free(c->yuvTable);
......
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