# HG changeset patch # User michaelni # Date 1030866031 0 # Node ID f5e68f32069fb68d90f73f425e494a6065e17f34 # Parent 47a8964ba5cd7886e1648ada43fa2881273279b3 dont discard first frame patch by (Lennert Buytenhek ) diff -r 47a8964ba5cd -r f5e68f32069f mp3lameaudio.c --- 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; }