diff options
author | lucabe <lucabe@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-26 16:28:34 +0000 |
---|---|---|
committer | lucabe <lucabe@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-26 16:28:34 +0000 |
commit | 9d9fce641968af5b454a7832319a14605b6d5634 (patch) | |
tree | 7cb5c7da3c743b6fe25f5da4a5d62daebf7a0276 /libswscale | |
parent | c5c0e11eeb352003c4a35ef49ce0a3806e2e321c (diff) | |
download | mpv-9d9fce641968af5b454a7832319a14605b6d5634.tar.bz2 mpv-9d9fce641968af5b454a7832319a14605b6d5634.tar.xz |
Add some other casts, to remove void pointers arithmetic
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21773 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/yuv2rgb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c index 9066b68b2b..55c4bb2d4b 100644 --- a/libswscale/yuv2rgb.c +++ b/libswscale/yuv2rgb.c @@ -832,10 +832,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] = 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); |