[FFmpeg-devel] [PATCH 1/2] libmp3lame: It appears the buffer used is a bit too small.

Michael Niedermayer michaelni at gmx.at
Sun Jan 8 18:50:13 CET 2012


Increase it by an arbitrary amount.
Fixes part of Ticket676

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavcodec/libmp3lame.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c
index 1b736d0..f8b63a6 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)
 typedef struct Mp3AudioContext {
     AVClass *class;
     lame_global_flags *gfp;
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list