diff options
author | Andreas Öman <andreas@olebyn.nu> | 2007-07-24 09:59:54 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2007-07-24 09:59:54 +0000 |
commit | c7d96ac69f4ecbb2b384278b43e3614418a8755b (patch) | |
tree | b29c470fdaa09b1e738da422f18f3773892258ef /libavcodec/libmp3lame.c | |
parent | 73f51a4d3e3934c78006e3c9bf644713c367b40c (diff) | |
download | ffmpeg-c7d96ac69f4ecbb2b384278b43e3614418a8755b.tar.gz |
increase buffer size of LAME MP3 encoder
The previous size lead to A/V sync issues
Patch by Andreas Öman %andreas AA olebyn PP nu%
Original thread:
Date: Jul 21, 2007 9:53 AM
Subject: [FFmpeg-devel] [PATCH] lame buffer shortage
Originally committed as revision 9786 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libmp3lame.c')
-rw-r--r-- | libavcodec/libmp3lame.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |