CC-2301 : needed to adjust cueout if length information is inaccurate.
This commit is contained in:
parent
2b22828e85
commit
628af95325
1 changed files with 4 additions and 0 deletions
|
@ -192,6 +192,10 @@ TrackEditor.prototype.onTrackLoad = function(buffer) {
|
|||
if (this.cues === undefined) {
|
||||
this.setCuePoints(0, buffer.length - 1);
|
||||
}
|
||||
//adjust if the length was inaccurate and cueout is set to a higher sample than we actually have.
|
||||
else if (this.cues.cueout > (buffer.length - 1)) {
|
||||
this.cues.cueout = buffer.length - 1;
|
||||
}
|
||||
|
||||
if (this.width !== undefined) {
|
||||
res = Math.ceil(buffer.length / this.width);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue