summaryrefslogtreecommitdiff
path: root/cflac.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-30 19:35:19 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-30 19:35:19 +0200
commit7b0c87809108ab4e366580efae077d87731db374 (patch)
tree5a93e2d358424e807734b77b240cafe814cfc958 /cflac.c
parent8efe8f3c745f42fcad1df00638544a138dbadeb6 (diff)
fixed buffer overrun in flac decoder
Diffstat (limited to 'cflac.c')
-rw-r--r--cflac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cflac.c b/cflac.c
index 5ee1ee06..81bae8fd 100644
--- a/cflac.c
+++ b/cflac.c
@@ -28,7 +28,7 @@ static DB_functions_t *deadbeef;
#define max(x,y) ((x)>(y)?(x):(y))
static FLAC__StreamDecoder *decoder = 0;
-#define BUFFERSIZE 40000
+#define BUFFERSIZE 100000
static char buffer[BUFFERSIZE]; // this buffer always has int32 samples
static int remaining; // bytes remaining in buffer from last read
static float timestart;