diff --git a/src/encoderWorker.js b/src/encoderWorker.js index 0a022ea..ca42555 100644 --- a/src/encoderWorker.js +++ b/src/encoderWorker.js @@ -324,6 +324,8 @@ if (typeof registerProcessor === 'function') { case 'getHeaderPages': this.postPage(this.encoder.generateIdPage()); this.postPage(this.encoder.generateCommentPage()); + // Match the pre-skip. See chris-rudmin/opus-recorder#248 + this.granulePosition = 3840; break; case 'done':