* LocalDB merged with file browser

* fixed hangup on truncated flac files
* optimized CRC32 calculations
This commit is contained in:
chudov
2011-04-10 18:16:26 +00:00
parent 89caa7858e
commit c4a5a465ef
14 changed files with 1661 additions and 1196 deletions

View File

@@ -1628,6 +1628,8 @@ namespace CUETools.Codecs.ALAC
verifyBuffer = new int[Alac.MAX_BLOCKSIZE * _pcm.ChannelCount];
}
if (sample_count < 0)
throw new InvalidOperationException("FinalSampleCount unknown");
int frames = sample_count / eparams.block_size;
int header_len = max_header_len
+ eparams.padding_size