[FFmpeg-cvslog] libmp3lame: It appears the buffer used is a bit too small.

Michael Niedermayer git at videolan.org
Wed Jan 11 22:06:49 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jan  8 18:36:17 2012 +0100| [84d0fcf268da880211b8e3f72764e2a47e07955b] | committer: Michael Niedermayer

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 at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=84d0fcf268da880211b8e3f72764e2a47e07955b
---

 libavcodec/libmp3lame.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c
index 1b736d0..461dcb5 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;



More information about the ffmpeg-cvslog mailing list