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
pull/126/head
Andreas Öman 18 years ago committed by Guillaume Poirier
parent 73f51a4d3e
commit c7d96ac69f
  1. 2
      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;

Loading…
Cancel
Save