mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-29 03:43:50 +02:00
0-duration VideoFrame
This commit is contained in:
+1
-1
@@ -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',
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user