Fix incorrect GOP timestamp verification logic for first GOP (fixes #321)

This commit is contained in:
Vanilagy
2026-03-13 10:45:34 +01:00
parent 87ed3a1934
commit 35e16ca23e
3 changed files with 27 additions and 20 deletions
+1 -1
View File
@@ -189,7 +189,7 @@
},
trim: {
//start: 0,
//end: 10
end: 10
},
});
console.log(conversion);
+5 -1
View File
@@ -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;
}
}
/*