changeset 27544:e69bd178104a

Fix chroma yuv->rgb tables for jpeg style yuv, this was missed as it only affects the C code while mmx uses different tables.
author michael
date Thu, 11 Sep 2008 00:09:01 +0000
parents 1e0b48b2b253
children cd5855b269df
files libswscale/yuv2rgb.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/yuv2rgb.c	Wed Sep 10 23:23:47 2008 +0000
+++ b/libswscale/yuv2rgb.c	Thu Sep 11 00:09:01 2008 +0000
@@ -880,10 +880,10 @@
     }
 
     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);