Revision 85a51e6b

View differences:

libswscale/yuv2rgb.c
880 880
    }
881 881

  
882 882
    for (i = 0; i < 256; i++) {
883
        c->table_rV[i] = (uint8_t *)table_r + entry_size * div_round (crv * (i-128), 76309);
884
        c->table_gU[i] = (uint8_t *)table_g + entry_size * div_round (cgu * (i-128), 76309);
885
        c->table_gV[i] = entry_size * div_round (cgv * (i-128), 76309);
886
        c->table_bU[i] = (uint8_t *)table_b + entry_size * div_round (cbu * (i-128), 76309);
883
        c->table_rV[i] = (uint8_t *)table_r + entry_size * div_round (crv * (i-128), cy);
884
        c->table_gU[i] = (uint8_t *)table_g + entry_size * div_round (cgu * (i-128), cy);
885
        c->table_gV[i] = entry_size * div_round (cgv * (i-128), cy);
886
        c->table_bU[i] = (uint8_t *)table_b + entry_size * div_round (cbu * (i-128), cy);
887 887
    }
888 888

  
889 889
    av_free(c->yuvTable);

Also available in: Unified diff