* 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

@@ -108,7 +108,10 @@ namespace CUETools.Codecs.ALAC
int sampleDuration;
int sampleSize;
if (_iSample >= _sample_byte_size.Length)
{
buff.Length = offset;
return offset;
}
get_sample_info(_iSample, out sampleDuration, out sampleSize);
_IO.Read(_framesBuffer, 0, sampleSize);
decodeFrame(sampleSize);