0-duration VideoFrame

This commit is contained in:
Vanilagy
2025-02-16 19:03:36 +01:00
parent 873dae00c1
commit 3848a59ec3
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -418,7 +418,7 @@ export class CanvasSource extends VideoSource {
const frame = new VideoFrame(this._canvas, {
timestamp: Math.round(1e6 * timestamp),
duration: Math.round(1e6 * duration),
duration: Math.round(1e6 * duration) || undefined, // Drag 0 duration to undefined, glitches some codecs
alpha: 'discard',
});