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:
parent
2ac9741ef2
commit
bb21da6ed1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue