mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
0-duration VideoFrame
This commit is contained in:
+2
-2
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user