mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 02:43:48 +02:00
Fix incorrect GOP timestamp verification logic for first GOP (fixes #321)
This commit is contained in:
+1
-1
@@ -189,7 +189,7 @@
|
||||
},
|
||||
trim: {
|
||||
//start: 0,
|
||||
//end: 10
|
||||
end: 10
|
||||
},
|
||||
});
|
||||
console.log(conversion);
|
||||
|
||||
+5
-1
@@ -21,7 +21,11 @@
|
||||
const sink = new Mediabunny.EncodedPacketSink(videoTrack);
|
||||
|
||||
for await (const packet of sink.packets()) {
|
||||
console.log(packet.timestamp);
|
||||
console.log(packet.type, packet.timestamp);
|
||||
|
||||
if (packet.timestamp >= 5) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user