HydrogenAudio

Lossy Audio Compression => MP3 => MP3 - Tech => Topic started by: Vouti on 2003-10-21 16:54:05

Title: Part 2 length issue
Post by: Vouti on 2003-10-21 16:54:05
Hi,

I'm working on a decoder, and I have an issue with part 2 length. ISO 11172-3 says it's: part2_length = 11*slen1+10*slen2 for long blocks. How come this doesn't take into account the bits that are duplicated between granules?

I.e. if we have a long block that has a band that has scfsi[scfsi_band] flag set resulting in data being copied from granule 0 to granule 1, doesn't this affect how many bits are retrieved from the bit stream?

Thanks in advance,
Vouti