summaryrefslogtreecommitdiff
path: root/libavcodec/mp3lameaudio.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@math.leidenuniv.nl>2002-09-01 07:40:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-09-01 07:40:31 +0000
commit5bd11e314e3acb626edbd3f4560337639f4a07e1 (patch)
treeb7aec46d976bb5b0cc838555779ba37143772e3c /libavcodec/mp3lameaudio.c
parent1565dabc1a7d0b5a9ad44a27aae8ce637ccd3538 (diff)
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
Diffstat (limited to 'libavcodec/mp3lameaudio.c')
-rw-r--r--libavcodec/mp3lameaudio.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/mp3lameaudio.c b/libavcodec/mp3lameaudio.c
index 9a9fee0c83..a047e1a19e 100644
--- a/libavcodec/mp3lameaudio.c
+++ b/libavcodec/mp3lameaudio.c
@@ -23,7 +23,6 @@
typedef struct Mp3AudioContext {
lame_global_flags *gfp;
- int first_frame;
int stereo;
} Mp3AudioContext;
@@ -35,7 +34,6 @@ static int MP3lame_encode_init(AVCodecContext *avctx)
if (avctx->channels > 2)
return -1;
- s->first_frame = 1;
s->stereo = avctx->channels > 1 ? 1 : 0;
if ((s->gfp = lame_init()) == NULL)
@@ -77,9 +75,6 @@ int MP3lame_encode_frame(AVCodecContext *avctx,
frame, buf_size);
}
- /* lame 3.91 outputs the first frame as garbage */
- if (s->first_frame)
- s->first_frame = num = 0;
return num;
}