diff options
author | Andre Pang <athp@users.sourceforge.net> | 2004-12-12 06:55:58 +0000 |
---|---|---|
committer | Andre Pang <athp@users.sourceforge.net> | 2004-12-12 06:55:58 +0000 |
commit | 1de00c1f9d0f1eba90be53b8dd9635b79b68dc2a (patch) | |
tree | 057da9b98c78a90e2a4446ab56e413c1479ae5ac /src/libspeex/xine_decoder.c | |
parent | f5e91a956b0df782bbdfb23beb319846ca2ebe4f (diff) | |
download | xine-lib-1de00c1f9d0f1eba90be53b8dd9635b79b68dc2a.tar.gz xine-lib-1de00c1f9d0f1eba90be53b8dd9635b79b68dc2a.tar.bz2 |
Code cleanups and elimination of some compiler warnings; patch courtesy of AL13N
CVS patchset: 7230
CVS date: 2004/12/12 06:55:58
Diffstat (limited to 'src/libspeex/xine_decoder.c')
-rw-r--r-- | src/libspeex/xine_decoder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libspeex/xine_decoder.c b/src/libspeex/xine_decoder.c index ba843d63f..58034b2d3 100644 --- a/src/libspeex/xine_decoder.c +++ b/src/libspeex/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.13 2004/11/12 06:32:54 athp Exp $ + * $Id: xine_decoder.c,v 1.14 2004/12/12 06:55:58 athp Exp $ * * (ogg/)speex audio decoder plugin (libspeex wrapper) for xine */ @@ -327,7 +327,7 @@ static void speex_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { int bitrate; ogg_int16_t * ptr = audio_buffer->mem; - ret = speex_decode (this->st, &this->bits, this->output); + ret = speex_decode (this->st, &this->bits, (short *) this->output); if (ret==-1) break; @@ -341,7 +341,7 @@ static void speex_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { } if (this->channels == 2) { - speex_decode_stereo (this->output, this->frame_size, &this->stereo); + speex_decode_stereo ( (short *) this->output, this->frame_size, &this->stereo); } speex_decoder_ctl (this->st, SPEEX_GET_BITRATE, &bitrate); |