mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fixed very rare seek bug (SF#1684049: https://sourceforge.net/tracker/index.php?func=detail&aid=1684049&group_id=13478&atid=113478)
This commit is contained in:
@@ -2043,6 +2043,8 @@ FLAC__bool read_frame_(FLAC__StreamDecoder *decoder, FLAC__bool *got_a_frame, FL
|
||||
}
|
||||
if(!read_zero_padding_(decoder))
|
||||
return false;
|
||||
if(decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC) /* means bad sync or got corruption (i.e. "zero bits" were not all zeroes) */
|
||||
return true;
|
||||
|
||||
/*
|
||||
* Read the frame CRC-16 from the footer and check
|
||||
|
||||
Reference in New Issue
Block a user