diff options
author | František Dvořák <valtri@users.sourceforge.net> | 2005-05-07 09:11:37 +0000 |
---|---|---|
committer | František Dvořák <valtri@users.sourceforge.net> | 2005-05-07 09:11:37 +0000 |
commit | f2f91f2d7d1de1f0d9f4249d90e4edfd01ed0bb4 (patch) | |
tree | f77e37e2963b45a14ed2447b62f7817e80a32d34 /src/post/audio/stretch.c | |
parent | eed0d8c57fb0c0a7917a820dfc009baf81f223c0 (diff) | |
download | xine-lib-f2f91f2d7d1de1f0d9f4249d90e4edfd01ed0bb4.tar.gz xine-lib-f2f91f2d7d1de1f0d9f4249d90e4edfd01ed0bb4.tar.bz2 |
*BUGFIX*
gcc4 patches from Dams Nadé (livna.org) and Keenan Pepper.
CVS patchset: 7527
CVS date: 2005/05/07 09:11:37
Diffstat (limited to 'src/post/audio/stretch.c')
-rw-r--r-- | src/post/audio/stretch.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |