From a6320f13f13fa603c0728e5a70ecaa4327abdca3 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 13 Feb 2009 12:18:48 -0800 Subject: scaletempo: Do not use void pointer arithmetic. --- gst/scaletempo/gstscaletempo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gst/scaletempo') diff --git a/gst/scaletempo/gstscaletempo.c b/gst/scaletempo/gstscaletempo.c index 45fdb516..ad3b949a 100644 --- a/gst/scaletempo/gstscaletempo.c +++ b/gst/scaletempo/gstscaletempo.c @@ -342,7 +342,7 @@ reinit_buffers (GstScaletempo * scaletempo) p->buf_overlap = g_realloc (p->buf_overlap, p->bytes_overlap); p->table_blend = g_realloc (p->table_blend, p->samples_overlap * 4); /* sizeof (gint32|gfloat) */ if (p->bytes_overlap > prev_overlap) { - memset (p->buf_overlap + prev_overlap, 0, + memset ((guint8 *) p->buf_overlap + prev_overlap, 0, p->bytes_overlap - prev_overlap); } if (p->use_int) { @@ -384,7 +384,7 @@ reinit_buffers (GstScaletempo * scaletempo) gint32 n = 8589934588LL / (t * t); /* 4 * (2^31 - 1) / t^2 */ gint32 *pw; - memset (p->buf_pre_corr + bytes_pre_corr, 0, UNROLL_PADDING); + memset ((guint8 *) p->buf_pre_corr + bytes_pre_corr, 0, UNROLL_PADDING); pw = p->table_window; for (i = 1; i < frames_overlap; i++) { gint32 v = (i * (t - i) * n) >> 15; -- cgit v1.2.1