Skip to content

Commit

Permalink
APL+CUE: Revert pointless change
Browse files Browse the repository at this point in the history
This change served no purpose, other than to confuse me. I must need
some sleep already.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
  • Loading branch information
kode54 committed Jul 21, 2023
1 parent c3070e5 commit 99578a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Plugins/APL/APLDecoder.m
Expand Up @@ -113,7 +113,7 @@ - (long)seek:(long)frame {
- (AudioChunk *)readAudio {
int maxFrames = INT_MAX;

if(framePosition + maxFrames >= trackEnd)
if(framePosition + maxFrames > trackEnd)
maxFrames = (int)(trackEnd - framePosition);

if(!maxFrames) {
Expand Down
2 changes: 1 addition & 1 deletion Plugins/CueSheet/CueSheetDecoder.m
Expand Up @@ -343,7 +343,7 @@ - (AudioChunk *)readAudio {

int frames = INT_MAX;

if(!noFragment && framePosition + frames >= trackEnd) {
if(!noFragment && framePosition + frames > trackEnd) {
frames = (UInt32)(trackEnd - framePosition);
}

Expand Down

0 comments on commit 99578a3

Please sign in to comment.