On Friday, March 28, 2003, at 01:09 PM, Fernando Ortiz wrote:
Does anyone know the cause of this error (MAD_ERROR_BADHUFFDATA)? Is it documented anywhere?
This is a Huffman data overrun error. It happens when the actual big_values section of the bitstream occupies more space than was declared by the bitstream for it. This can happen because the Huffman code words are variable length and the actual length is learned implicitly during decoding.
Most often this is an indication of an error made by an encoder, but it's also possible to happen if there is an error in MAD's Huffman code tables or the process of reading them. As the Huffman table union initialization macros are subject to portability issues, this is a possible source of the problem if you get a lot of these errors.