Mercurial > libavcodec.hg
changeset 632:f5e68f32069f libavcodec
dont discard first frame patch by (Lennert Buytenhek <buytenh at math dot leidenuniv dot nl>)
author | michaelni |
---|---|
date | Sun, 01 Sep 2002 07:40:31 +0000 |
parents | 47a8964ba5cd |
children | e7b72c1dfa1b |
files | mp3lameaudio.c |
diffstat | 1 files changed, 0 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mp3lameaudio.c Sun Sep 01 07:26:43 2002 +0000 +++ b/mp3lameaudio.c Sun Sep 01 07:40:31 2002 +0000 @@ -23,7 +23,6 @@ typedef struct Mp3AudioContext { lame_global_flags *gfp; - int first_frame; int stereo; } Mp3AudioContext; @@ -35,7 +34,6 @@ 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 @@ frame, buf_size); } - /* lame 3.91 outputs the first frame as garbage */ - if (s->first_frame) - s->first_frame = num = 0; return num; }