ref: 54669dc89bf23fa3cc531338b2bb8f9971e8acd9
parent: e610864c7414f92eeb26c1b0260d23e0d5133fb7
author: Jean-Marc Valin <[email protected]>
date: Sat Aug 1 19:22:51 EDT 2009
Allocating enough mem in celtenc/celtdec to handle 1024-sample frames
--- a/tools/celtdec.c
+++ b/tools/celtdec.c
@@ -83,7 +83,7 @@
#include "wav_io.h"
#include <celt_header.h>
-#define MAX_FRAME_SIZE 2000
+#define MAX_FRAME_SIZE 2048
#define readint(buf, base) (((buf[base+3]<<24)&0xff000000)| \
((buf[base+2]<<16)&0xff0000)| \
--- a/tools/celtenc.c
+++ b/tools/celtenc.c
@@ -79,8 +79,8 @@
return written;
}
-#define MAX_FRAME_SIZE 2000
-#define MAX_FRAME_BYTES 300
+#define MAX_FRAME_SIZE 2048
+#define MAX_FRAME_BYTES 1024
#define IMIN(a,b) ((a) < (b) ? (a) : (b)) /**< Minimum int value. */
#define IMAX(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum int value. */