audiocogs/aurora.js

little fix

Opened this issue · 1 comments

sometimes seekpoint is undefined ... no seekpoints in memory

Decoder.prototype.seek = function(timestamp) {
var seekPoint;
seekPoint = this.demuxer.seek(timestamp);
if (seekPoint){
this.stream.seek(seekPoint.offset);
return seekPoint.timestamp;
} else return 0;
};

yes! You right again! It fixs some problems