mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Fix thing
This commit is contained in:
+1
-1
@@ -910,7 +910,7 @@ export 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