mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Always flush when encountering a new key packet
This commit is contained in:
+1
-5
@@ -581,11 +581,7 @@ export abstract class BaseMediaSampleSink<
|
||||
)
|
||||
) {
|
||||
await decodePackets();
|
||||
|
||||
if (targetPacket.timestamp < lastPacket.timestamp) {
|
||||
// We're going back in time with this one, let's flush and reset to a clean state
|
||||
await flushDecoder();
|
||||
}
|
||||
await flushDecoder();
|
||||
}
|
||||
|
||||
timestampsOfInterest.push(targetPacket.timestamp);
|
||||
|
||||
Reference in New Issue
Block a user