From c7d96ac69f4ecbb2b384278b43e3614418a8755b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=96man?= <andreas@olebyn.nu>
Date: Tue, 24 Jul 2007 09:59:54 +0000
Subject: [PATCH] =?UTF-8?q?increase=20buffer=20size=20of=20LAME=20MP3=20en?=
 =?UTF-8?q?coder=20The=20previous=20size=20lead=20to=20A/V=20sync=20issues?=
 =?UTF-8?q?=20Patch=20by=20Andreas=20=C3=96man=20%andreas=20AA=20olebyn=20?=
 =?UTF-8?q?PP=20nu%=20Original=20thread:=20Date:=20Jul=2021,=202007=209:53?=
 =?UTF-8?q?=20AM=20Subject:=20[FFmpeg-devel]=20[PATCH]=20lame=20buffer=20s?=
 =?UTF-8?q?hortage?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Originally committed as revision 9786 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/libmp3lame.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c
index b742154ba3..e7671d08ea 100644
--- a/libavcodec/libmp3lame.c
+++ b/libavcodec/libmp3lame.c
@@ -28,7 +28,7 @@
 #include "mpegaudio.h"
 #include <lame/lame.h>
 
-#define BUFFER_SIZE (2*MPA_FRAME_SIZE)
+#define BUFFER_SIZE (7200 + MPA_FRAME_SIZE + MPA_FRAME_SIZE/4)
 typedef struct Mp3AudioContext {
     lame_global_flags *gfp;
     int stereo;