Skip to content

fix(core): ceil timeline payload duration to match render frames#977

Merged
miguel-heygen merged 1 commit into
heygen-com:mainfrom
func25:ceil-duration-preview
May 19, 2026
Merged

fix(core): ceil timeline payload duration to match render frames#977
miguel-heygen merged 1 commit into
heygen-com:mainfrom
func25:ceil-duration-preview

Conversation

@func25
Copy link
Copy Markdown
Contributor

@func25 func25 commented May 19, 2026

What

Change runtime timeline payload duration frame calculation from rounding to ceiling.

Why

Render probe computes total frames with ceil(duration * fps). The timeline payload used round(duration * fps), so fractional durations like 1.01s @ 30fps could report 30 frames while render captures 31 frames.

How

Use ceiling when converting the playable timeline duration to durationInFrames, matching render frame count semantics.

Test plan

  • Unit tests added/updated
  • Manual testing performed
  • Documentation updated (if applicable)

@miguel-heygen miguel-heygen merged commit 8f05457 into heygen-com:main May 19, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants