From 194748a1ba576d2fcad843bbdf0ffe27bf1dbae5 Mon Sep 17 00:00:00 2001 From: shatty Date: Wed, 21 Jan 2004 22:25:13 +0000 Subject: [PATCH] speex output length multiply by channel count git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6219 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 c00a20d9cc..c0ba3868b6 100644 --- a/src/add-ons/media/plugins/speex/speexCodecPlugin.cpp +++ b/src/add-ons/media/plugins/speex/speexCodecPlugin.cpp @@ -140,7 +140,7 @@ speexDecoder::Setup(media_format *inputFormat, speex_decoder_ctl(fDecoderState, SPEEX_SET_ENH, &enabled); } speex_decoder_ctl(fDecoderState, SPEEX_GET_FRAME_SIZE, &fHeader->frame_size); - fSpeexOutputLength = fHeader->frame_size * sizeof(float); + fSpeexOutputLength = fHeader->frame_size * sizeof(float) * fHeader->nb_channels; if (fHeader->nb_channels == 2) { SpeexCallback callback; SpeexStereoState stereo = SPEEX_STEREO_STATE_INIT;