comparison libmp3lame.c @ 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 4dbe6578f811
children 11a44fc273a5
comparison
equal deleted inserted replaced
5394:e9a6215f4e3a 5395:87d908152cb7
26 26
27 #include "avcodec.h" 27 #include "avcodec.h"
28 #include "mpegaudio.h" 28 #include "mpegaudio.h"
29 #include <lame/lame.h> 29 #include <lame/lame.h>
30 30
31 #define BUFFER_SIZE (2*MPA_FRAME_SIZE) 31 #define BUFFER_SIZE (7200 + MPA_FRAME_SIZE + MPA_FRAME_SIZE/4)
32 typedef struct Mp3AudioContext { 32 typedef struct Mp3AudioContext {
33 lame_global_flags *gfp; 33 lame_global_flags *gfp;
34 int stereo; 34 int stereo;
35 uint8_t buffer[BUFFER_SIZE]; 35 uint8_t buffer[BUFFER_SIZE];
36 int buffer_index; 36 int buffer_index;