APL+CUE: Revert pointless change

This change served no purpose, other than to confuse me. I must need
some sleep already.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2023-07-21 00:24:59 -07:00
parent c3070e5f39
commit 99578a333e
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -113,7 +113,7 @@
- (AudioChunk *)readAudio {
int maxFrames = INT_MAX;
if(framePosition + maxFrames >= trackEnd)
if(framePosition + maxFrames > trackEnd)
maxFrames = (int)(trackEnd - framePosition);
if(!maxFrames) {

View file

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