mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Add proper non-null check
This commit is contained in:
+1
-1
@@ -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; ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user