From 1f82f2a41694f07591beabca9ce188231867ab3e Mon Sep 17 00:00:00 2001 From: shatty Date: Fri, 30 Jan 2004 08:17:50 +0000 Subject: [PATCH] stereo decode fix git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6427 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/media/plugins/speex/speexCodecPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/media/plugins/speex/speexCodecPlugin.cpp b/src/add-ons/media/plugins/speex/speexCodecPlugin.cpp index 4ae25c048c..76d51801e2 100644 --- a/src/add-ons/media/plugins/speex/speexCodecPlugin.cpp +++ b/src/add-ons/media/plugins/speex/speexCodecPlugin.cpp @@ -290,7 +290,7 @@ SpeexDecoder::Decode(void *buffer, int64 *frameCount, break; } if (fHeader->nb_channels == 2) { - speex_decode_stereo((float*)out_buffer, fSpeexOutputLength, fStereoState); + speex_decode_stereo((float*)out_buffer, fHeader->frame_size, fStereoState); } for (int i = 0 ; i < fSpeexOutputLength/fFrameSize ; i++) { *((float*)out_buffer) /= 32000;