> Date: Sun, 30 Jul 2000 20:03:22 +0200 (CEST)
> From: Alberto Garc�a <[EMAIL PROTECTED]>
>
> I noticed this encoding a 2 seconds wav from the end of a song:
>
> lame --abr 192 -h 1.wav 1.mp3
> lame --decode 1.mp3 2.wav
>
> The output from the decoding was:
>
> input: 1.mp3 44.1kHz MPEG1 2 channel LayerIII
> output: 2.wav (wav format)
> skipping initial 1104 samples (encoder + decoder delay)
> Frame# 66 [ 71] 80kbsmpg123: Can't rewind stream by 2 bits!
> mpg123: Can't rewind stream by 1 bits!
> Frame# 67 [ 71] 64kbsmpg123: Can't rewind stream by 2 bits!
> Frame# 70 [ 70] 80kbs
>
> The same error appears with mpg123. I'm using LAME 3.85. Is this
> normal? I found this in some other songs enconded.
>
I just got a chance to try this: It is indeed a bug in LAME.
It is also the same bug mentioned before, in the huffman encoding,
where region0_count is chosen as an illegal value.
It is in a complicated section of code, which chooses the
region0 and region1 partition of the "bigvalues"
(quantized values > 1).
The problem seems to be that count_bits_long() wasn't handling
the case when bigvalues < region0 < region1. In this case
the entire "bigvalues" data should be encoded as region0, and
region0, region1 are ignored.
I put in a small fix for this, which may fix the other problems
too.
But Takehiro will have to check this out and bless it!
Mark
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )