diff --git a/src/decode.ts b/src/decode.ts index a9140dd..9ab13fb 100644 --- a/src/decode.ts +++ b/src/decode.ts @@ -910,7 +910,7 @@ export class AudioDecoderWrapper extends DecoderWrapper { const sampleHandler = (sample: AudioSample) => { let sampleTimestamp = sample.timestamp; - if (this.expectedFirstTimestamp && this.currentTimestamp === null) { + if (this.expectedFirstTimestamp !== null && this.currentTimestamp === null) { this.timestampOffset = this.expectedFirstTimestamp - sampleTimestamp; }