aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libmp3lame.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-01-08 18:36:17 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-11 21:26:12 +0100
commit84d0fcf268da880211b8e3f72764e2a47e07955b (patch)
tree52ab5fef9a4e86c18c3e19a99d282c2e3a3e061a /libavcodec/libmp3lame.c
parentca1bae3983c6592efe4635e7e35a1f85833674b8 (diff)
downloadandroid_external_ffmpeg-84d0fcf268da880211b8e3f72764e2a47e07955b.tar.gz
android_external_ffmpeg-84d0fcf268da880211b8e3f72764e2a47e07955b.tar.bz2
android_external_ffmpeg-84d0fcf268da880211b8e3f72764e2a47e07955b.zip
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 <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libmp3lame.c')
-rw-r--r--libavcodec/libmp3lame.c2
1 files changed, 1 insertions, 1 deletions
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 <lame/lame.h>
-#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;