Kim Minh Kaplan writes: > + if (m_lEncodedBits > m_lExpectedBits) > + q = ceil(q); Oops, forget this part... These are some changes I am doing to the file, and have nothing to do with the issue here. Kim Minh.