FLACCL: fix problem with 192kHz audio

This commit is contained in:
Grigory Chudov
2013-06-16 15:46:50 -04:00
parent 4c9b64b04a
commit 21a1628018
3 changed files with 7 additions and 5 deletions

View File

@@ -2023,7 +2023,7 @@ namespace CUETools.Codecs.FLACCL
//// return blocksize >> 1;
////}
for (int i = 8; i < Flake.flac_blocksizes.Length; i++)
for (int i = 8; i < Flake.flac_blocksizes.Length - 1; i++)
if (target >= Flake.flac_blocksizes[i] && Flake.flac_blocksizes[i] > blocksize)
{
blocksize = Flake.flac_blocksizes[i];