Commit 5bd11e31 authored by Lennert Buytenhek's avatar Lennert Buytenhek Committed by Michael Niedermayer

dont discard first frame patch by (Lennert Buytenhek <buytenh at math dot leidenuniv dot nl>)

Originally committed as revision 890 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 1565dabc
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
typedef struct Mp3AudioContext { typedef struct Mp3AudioContext {
lame_global_flags *gfp; lame_global_flags *gfp;
int first_frame;
int stereo; int stereo;
} Mp3AudioContext; } Mp3AudioContext;
...@@ -35,7 +34,6 @@ static int MP3lame_encode_init(AVCodecContext *avctx) ...@@ -35,7 +34,6 @@ static int MP3lame_encode_init(AVCodecContext *avctx)
if (avctx->channels > 2) if (avctx->channels > 2)
return -1; return -1;
s->first_frame = 1;
s->stereo = avctx->channels > 1 ? 1 : 0; s->stereo = avctx->channels > 1 ? 1 : 0;
if ((s->gfp = lame_init()) == NULL) if ((s->gfp = lame_init()) == NULL)
...@@ -77,9 +75,6 @@ int MP3lame_encode_frame(AVCodecContext *avctx, ...@@ -77,9 +75,6 @@ int MP3lame_encode_frame(AVCodecContext *avctx,
frame, buf_size); frame, buf_size);
} }
/* lame 3.91 outputs the first frame as garbage */
if (s->first_frame)
s->first_frame = num = 0;
return num; return num;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment