mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
FLACCL: fix incompatibilily with libFLAC on some files with hi-res audio
This commit is contained in:
@@ -416,7 +416,9 @@ namespace CUETools.Codecs.FLAKE
|
||||
|
||||
// LPC coefficients
|
||||
frame.subframes[ch].best.cbits = (int)bitreader.readbits(4) + 1; // lpc_precision
|
||||
frame.subframes[ch].best.shift = bitreader.readbits_signed(5);
|
||||
if (frame.subframes[ch].best.cbits >= 16)
|
||||
throw new Exception("cbits >= 16");
|
||||
frame.subframes[ch].best.shift = bitreader.readbits_signed(5);
|
||||
if (frame.subframes[ch].best.shift < 0)
|
||||
throw new Exception("negative shift");
|
||||
for (int i = 0; i < frame.subframes[ch].best.order; i++)
|
||||
|
||||
Reference in New Issue
Block a user