MovieSceneSequencePlayer returns incorrect end time

Hi, we’ve noticed an inconsistency with UMovieSceneSequencePlayer::GetEndTime(). It does not take into account DurationSubFrames. See UMovieSceneSequencePlayer::GetDuration() for comparison. Also, the comment above DurationFrames property seemed to imply it was envisioned as FFrameNumber EndTime, rather than a duration. Looks like a bug to me, so I’m reporting it here.

[Attachment Removed]

Steps to Reproduce[Attachment Removed]

Hey there,

Thanks for raising this. I’ve logged an issue that you can follow here:

https://issues.unrealengine.com/issue/UE-388747

I would say, feel free to adjust the code to something like this:

FQualifiedFrameTime GetEndTime() const { return FQualifiedFrameTime(FFrameTime(StartTime + DurationFrames, DurationSubFrames), PlayPosition.GetInputRate()); }This should match the paradigm in GetDuration as you noted, but I want to highlight that if you’ve adjusted your content to account for any drift at all, this would lead to issues.

Dustin

[Attachment Removed]