Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/opus_encoder.h')
-rw-r--r--src/opus_encoder.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opus_encoder.h b/src/opus_encoder.h
index aec775b2..a800a747 100644
--- a/src/opus_encoder.h
+++ b/src/opus_encoder.h
@@ -34,6 +34,7 @@
/* FIXME: This is only valid for 48 kHz */
#define ENCODER_DELAY_COMPENSATION 130
+#define ENCODER_BUFFER 480
struct OpusEncoder {
CELTEncoder *celt_enc;
@@ -50,7 +51,7 @@ struct OpusEncoder {
int use_vbr;
int bitrate_bps;
- short delay_buffer[ENCODER_DELAY_COMPENSATION*2];
+ short delay_buffer[ENCODER_BUFFER*2];
#ifdef OPUS_TEST_RANGE_CODER_STATE
int rangeFinal;