From f2f91f2d7d1de1f0d9f4249d90e4edfd01ed0bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Sat, 7 May 2005 09:11:37 +0000 Subject: =?UTF-8?q?*BUGFIX*=20gcc4=20patches=20from=20Dams=20Nad=C3=A9=20(?= =?UTF-8?q?livna.org)=20and=20Keenan=20Pepper.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CVS patchset: 7527 CVS date: 2005/05/07 09:11:37 --- src/post/audio/stretch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/post/audio/stretch.c') diff --git a/src/post/audio/stretch.c b/src/post/audio/stretch.c index 4598b1153..1f8eb3797 100644 --- a/src/post/audio/stretch.c +++ b/src/post/audio/stretch.c @@ -19,7 +19,7 @@ * * Time stretch by a given factor, optionally preserving pitch * - * $Id: stretch.c,v 1.5 2004/10/29 23:11:38 miguelfreitas Exp $ + * $Id: stretch.c,v 1.6 2005/05/07 09:11:39 valtri Exp $ * */ @@ -476,7 +476,7 @@ static void stretch_process_fragment( post_audio_port_t *port, memcpy( outbuf->mem, data_out, outbuf->num_frames * this->bytes_per_frame ); num_frames_out -= outbuf->num_frames; - (uint8_t *)data_out += outbuf->num_frames * this->bytes_per_frame; + data_out = (uint8_t *)data_out + outbuf->num_frames * this->bytes_per_frame; outbuf->vpts = this->pts; this->pts = 0; @@ -587,7 +587,7 @@ static void stretch_port_put_buffer (xine_audio_port_t *port_gen, memcpy( (uint8_t *)this->audiofrag + this->num_frames * this->bytes_per_frame, data_in, frames_to_copy * this->bytes_per_frame ); - (uint8_t *)data_in += frames_to_copy * this->bytes_per_frame; + data_in = (uint8_t *)data_in + frames_to_copy * this->bytes_per_frame; this->num_frames += frames_to_copy; buf->num_frames -= frames_to_copy; -- cgit v1.2.3