From b03f89b922a1a837492fb910332a82c3f3365150 Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Fri, 28 Aug 2026 15:11:07 +0200 Subject: [PATCH] Fix thing --- src/decode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }