summaryrefslogtreecommitdiff
path: root/src/post/audio/stretch.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2005-07-16 17:00:50 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2005-07-16 17:00:50 +0000
commit190eeb7a152f9ebd2c9f721e876ae5caea739e7b (patch)
tree16a7484bb7048e8648088f70a8d8a14007585608 /src/post/audio/stretch.c
parent42e0f1003ad4685d441923f589a2c6518caa8367 (diff)
downloadxine-lib-190eeb7a152f9ebd2c9f721e876ae5caea739e7b.tar.gz
xine-lib-190eeb7a152f9ebd2c9f721e876ae5caea739e7b.tar.bz2
- stretch.c: warning fix
- upmix_mono: use default's port names ("audio in", "audio out"). i know that video post plugin like to name their ports differently, but having standard names can make frontends' job easier when figuring out how to wire plugins. i just won't change the existing plugins to not break compatibility with frontends that might use them already... CVS patchset: 7643 CVS date: 2005/07/16 17:00:50
Diffstat (limited to 'src/post/audio/stretch.c')
-rw-r--r--src/post/audio/stretch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/post/audio/stretch.c b/src/post/audio/stretch.c
index 1f8eb3797..f5b7fd4de 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.6 2005/05/07 09:11:39 valtri Exp $
+ * $Id: stretch.c,v 1.7 2005/07/16 17:00:50 miguelfreitas 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;
- data_out = (uint8_t *)data_out + outbuf->num_frames * this->bytes_per_frame;
+ data_out = (uint16_t *)((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 );
- data_in = (uint8_t *)data_in + frames_to_copy * this->bytes_per_frame;
+ data_in = (uint16_t *)((uint8_t *)data_in + frames_to_copy * this->bytes_per_frame);
this->num_frames += frames_to_copy;
buf->num_frames -= frames_to_copy;