mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 23:00:03 +00:00
fix(core): ceil timeline payload duration to match render frames
This commit is contained in:
@@ -674,7 +674,7 @@ export function collectRuntimeTimelinePayload(params: {
|
||||
const shouldEmitNonDeterministicInf = timelineLooksLoopInflated && attrDurationCandidate == null;
|
||||
const durationInFrames = shouldEmitNonDeterministicInf
|
||||
? Number.POSITIVE_INFINITY
|
||||
: Math.max(1, Math.round(safeDuration * Math.max(1, params.canonicalFps)));
|
||||
: Math.max(1, Math.ceil(safeDuration * Math.max(1, params.canonicalFps)));
|
||||
return {
|
||||
source: "hf-preview",
|
||||
type: "timeline",
|
||||
|
||||
Reference in New Issue
Block a user