Makes delay_buffer[] large enough for stereo.
authorJean-Marc Valin <jean-marc.valin@octasic.com>
Mon, 31 Jan 2011 17:56:22 +0000 (12:56 -0500)
committerJean-Marc Valin <jean-marc.valin@octasic.com>
Mon, 31 Jan 2011 17:56:22 +0000 (12:56 -0500)
src/opus_encoder.h

index 1b0271e..d6b2136 100644 (file)
@@ -51,7 +51,7 @@ struct OpusEncoder {
     /* Sampling rate (at the API level) */
     int          Fs;
 
-    short        delay_buffer[ENCODER_DELAY_COMPENSATION];
+    short        delay_buffer[ENCODER_DELAY_COMPENSATION*2];
 };