# HG changeset patch # User lucabe # Date 1167150514 0 # Node ID 51f84ed3251bbfbe46bb900ec479a64eb7c0b630 # Parent b41f4217d57a48f70e60a907ab215892135c5809 Add some other casts, to remove void pointers arithmetic diff -r b41f4217d57a -r 51f84ed3251b libswscale/yuv2rgb.c --- a/libswscale/yuv2rgb.c Tue Dec 26 16:21:13 2006 +0000 +++ b/libswscale/yuv2rgb.c Tue Dec 26 16:28:34 2006 +0000 @@ -832,10 +832,10 @@ } for (i = 0; i < 256; i++) { - c->table_rV[i] = table_r + entry_size * div_round (crv * (i-128), 76309); - c->table_gU[i] = table_g + entry_size * div_round (cgu * (i-128), 76309); + 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] = 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), 76309); } av_free(c->yuvTable);