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
+2 -2
View File
@@ -380,8 +380,8 @@ export const setVideoFrameTiming = (frame: VideoFrame, timing: {
duration?: number;
}) => {
const clone = new VideoFrame(frame, {
timestamp: timing.timestamp && 1e6 * timing.timestamp,
duration: timing.duration && 1e6 * timing.duration,
timestamp: timing.timestamp !== undefined ? 1e6 * timing.timestamp : undefined,
duration: timing.duration !== undefined ? 1e6 * timing.duration : undefined,
});
frame.close();