From bb21da6ed1337b0ec00d37bc0194e6827a471b74 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Fri, 21 Jul 2023 00:11:12 -0700 Subject: [PATCH] CUE: Stop on the correct sample Stop before the end, rather than on it. Signed-off-by: Christopher Snowhill --- Plugins/CueSheet/CueSheetDecoder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/CueSheet/CueSheetDecoder.m b/Plugins/CueSheet/CueSheetDecoder.m index 99f680fc8..ab9f4c78c 100644 --- a/Plugins/CueSheet/CueSheetDecoder.m +++ b/Plugins/CueSheet/CueSheetDecoder.m @@ -339,7 +339,7 @@ static void *kCueSheetDecoderContext = &kCueSheetDecoderContext; int frames = INT_MAX; - if(!noFragment && framePosition + frames > trackEnd) { + if(!noFragment && framePosition + frames >= trackEnd) { frames = (UInt32)(trackEnd - framePosition); }