diff options
author | Michael Smith <msmith@songbirdnest.com> | 2009-02-13 12:18:48 -0800 |
---|---|---|
committer | Michael Smith <msmith@songbirdnest.com> | 2009-02-13 12:18:48 -0800 |
commit | a6320f13f13fa603c0728e5a70ecaa4327abdca3 (patch) | |
tree | be648df4a3282a4c3a4dd2bc4633222b75529e07 /gst | |
parent | 9eaccf65508891a62d27fc43370b44b872242057 (diff) | |
download | gst-plugins-bad-a6320f13f13fa603c0728e5a70ecaa4327abdca3.tar.gz gst-plugins-bad-a6320f13f13fa603c0728e5a70ecaa4327abdca3.tar.bz2 gst-plugins-bad-a6320f13f13fa603c0728e5a70ecaa4327abdca3.zip |
scaletempo: Do not use void pointer arithmetic.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/scaletempo/gstscaletempo.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |