mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
Add some other casts, to remove void pointers arithmetic
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21773 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c5c0e11eeb
commit
9d9fce6419
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user