Index: decode_mp3.c =================================================================== --- decode_mp3.c (revision 4393) +++ decode_mp3.c (working copy) @@ -148,6 +148,13 @@ //DEBUG_PRINTF("mp3_send. pcm_length == %d frames == %d", pcm->length, frames); if (frames++ == 0) { + // Bug 5720, files with CRC will have the ptr in the wrong place + if (header->flags & MAD_FLAG_PROTECTION) { + if (decoder->stream.anc_ptr.byte > decoder->stream.buffer + 2) { + decoder->stream.anc_ptr.byte = decoder->stream.anc_ptr.byte - 2; + } + } + xing_parse(decoder->stream.anc_ptr, decoder->stream.anc_bitlen); return; }