This commit is contained in:
Josh Coalson
2007-08-29 00:45:01 +00:00
parent 412a03752e
commit d54eb03dd6
2 changed files with 3 additions and 1 deletions

View File

@@ -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