From 84d0fcf268da880211b8e3f72764e2a47e07955b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 8 Jan 2012 18:36:17 +0100 Subject: [PATCH] libmp3lame: It appears the buffer used is a bit too small. Increase it by an arbitrary amount. Fixes part of Ticket676 Signed-off-by: Michael Niedermayer --- libavcodec/libmp3lame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c index 1b736d0342..461dcb5a0f 100644 --- a/libavcodec/libmp3lame.c +++ b/libavcodec/libmp3lame.c @@ -31,7 +31,7 @@ #include "mpegaudio.h" #include -#define BUFFER_SIZE (7200 + 2 * MPA_FRAME_SIZE + MPA_FRAME_SIZE / 4) +#define BUFFER_SIZE (7200 + 2 * MPA_FRAME_SIZE + MPA_FRAME_SIZE / 4+1000) // FIXME: Buffer size to small? Adding 1000 to make up for it. typedef struct Mp3AudioContext { AVClass *class; lame_global_flags *gfp;