From 105d751c940c3c6741b5796ba440400b85525b81 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Fri, 29 Apr 2011 21:04:35 -0400 Subject: [PATCH] Fixes 60 ms speech mode --- src/opus_encoder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/opus_encoder.c b/src/opus_encoder.c index 0deee0bf..bbbbcf47 100644 --- a/src/opus_encoder.c +++ b/src/opus_encoder.c @@ -111,7 +111,9 @@ int opus_encode(OpusEncoder *st, const short *pcm, int frame_size, int redundancy = 0; int redundancy_bytes = 0; int celt_to_silk = 0; - short pcm_buf[960*2]; + /* TODO: This is 60 only so we can handle 60ms speech/audio switching + it shouldn't bee too hard to reduce to 20 ms if needed */ + short pcm_buf[3*960*2]; int nb_compr_bytes; int to_celt = 0; celt_int32 mono_rate;