Commit afce1aeb authored by Josh Coalson's avatar Josh Coalson
Browse files

fix bug in code that skips id3v2 tags at the front of a file; false positives...

fix bug in code that skips id3v2 tags at the front of a file; false positives could cause decoding to fail
parent 1dfcea13
......@@ -1184,6 +1184,7 @@ FLAC__bool find_metadata_(FLAC__StreamDecoder *decoder)
}
continue;
}
id = 0;
if(x == 0xff) { /* MAGIC NUMBER for the first 8 frame sync bits */
decoder->private_->header_warmup[0] = (FLAC__byte)x;
if(!FLAC__bitbuffer_read_raw_uint32(decoder->private_->input, &x, 8, read_callback_, decoder))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment