While decompressing a block of data, I got the error FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH.
I recompressed this same file, and the error did not reoccur.
I have copied the data from both the good and bad blocks, and compared them. There are a total of 11 bytes different, all somewhat close together, but not adjacent. This data is attached.
I've been using FLAC since version 1.0.2. My app is rather well tested, and should have no bugs that would cause this. My app reads audio files from disk, compresses them using libFLAC, and writes the compressed blocks to DVD. My app also has its own CRC checking, which did not detect any error in this data being read back in from DVD. This suggests that the possible sources of this error could be either :
1) something in my app stomping on this data post compression and prior to write to DVD, or
2) some bug in FLAC that stomps on this data, but does not reflect this changed data in the FLAC CRC. Seems unlikely I suppose, but I don't know what to make of this, so I'm posting it in the hopes that there may be some telltale clue in this bad data.
Is there possibly a rare bug in FLAC that would cause this ?
I'm using 1.2.0.