[SCM] libav/experimental: Add some other casts, to remove void pointers arithmetic
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:54:30 UTC 2013
The following commit has been merged in the experimental branch:
commit 44060a73914e2edce762589c449e81d92778d574
Author: Luca Abeni <lucabe72 at email.it>
Date: Tue Dec 26 16:28:34 2006 +0000
Add some other casts, to remove void pointers arithmetic
Originally committed as revision 21773 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index 9066b68..55c4bb2 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);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list