Add proper non-null check

This commit is contained in:
Vanilagy
2026-08-28 15:11:31 +02:00
parent 16f8889e14
commit 42196e9f64
+1 -1
View File
@@ -2095,7 +2095,7 @@ class AudioDecoderWrapper extends DecoderWrapper<AudioSample> {
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; ;
}