From: Josh Coalson Date: Fri, 6 Oct 2006 06:21:41 +0000 (+0000) Subject: fix bug in code that skips id3v2 tags at the front of a file; false positives could... X-Git-Tag: 1.2.0~393 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afce1aeba8c2dc45531f303ad1caf0c833eb9e9c;p=platform%2Fupstream%2Fflac.git fix bug in code that skips id3v2 tags at the front of a file; false positives could cause decoding to fail --- diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c index 7441ba4..f1f5fc8 100644 --- a/src/libFLAC/stream_decoder.c +++ b/src/libFLAC/stream_decoder.c @@ -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))