CUE: Stop on the correct sample

Stop before the end, rather than on it.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2023-07-21 00:11:12 -07:00
parent 2ac9741ef2
commit bb21da6ed1

View file

@ -339,7 +339,7 @@ static void *kCueSheetDecoderContext = &kCueSheetDecoderContext;
int frames = INT_MAX; int frames = INT_MAX;
if(!noFragment && framePosition + frames > trackEnd) { if(!noFragment && framePosition + frames >= trackEnd) {
frames = (UInt32)(trackEnd - framePosition); frames = (UInt32)(trackEnd - framePosition);
} }