mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-09 16:53:47 +02:00
Fix atTimestamps iterator
This commit is contained in:
+4
-1
@@ -392,7 +392,10 @@ export abstract class BaseMediaFrameSink<
|
||||
}
|
||||
|
||||
let frameUsed = false;
|
||||
while (samplesOfInterest.length > 0 && samplesOfInterest[0] === wrappedFrame.sample) {
|
||||
while (
|
||||
samplesOfInterest.length > 0
|
||||
&& samplesOfInterest[0]!.is(wrappedFrame.sample as EncodedVideoSample & EncodedAudioSample)
|
||||
) {
|
||||
pushToQueue(this._duplicateFrame(wrappedFrame));
|
||||
samplesOfInterest.shift();
|
||||
frameUsed = true;
|
||||
|
||||
Reference in New Issue
Block a user