Mercurial > libavcodec.hg
changeset 5395:87d908152cb7 libavcodec
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
author | gpoirier |
---|---|
date | Tue, 24 Jul 2007 09:59:54 +0000 |
parents | e9a6215f4e3a |
children | 9f0f022ca8e7 |
files | libmp3lame.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmp3lame.c Tue Jul 24 08:54:56 2007 +0000 +++ b/libmp3lame.c Tue Jul 24 09:59:54 2007 +0000 @@ -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;