File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Sources/OpenTimelineIO-AVFoundation/AVFoundation-Extensions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ public extension AVComposition
3636 // So some integrations presume the rate of the global start time
3737 // implies the frame rate of the sequence or project
3838
39- let minFrameDuration = self . tracks ( withMediaType: . video) . reduce ( . positiveInfinity ) { min ( $0, $1. minFrameDuration ) }
39+ let maxNominalFrameRate = self . tracks ( withMediaType: . video) . reduce ( Float . zero ) { max ( $0, $1. nominalFrameRate ) }
4040
4141 let globalStartTime : RationalTime
4242
43- if minFrameDuration . isValid && minFrameDuration != . positiveInfinity
43+ if maxNominalFrameRate != . zero
4444 {
45- globalStartTime = config. globalStartTime. rescaled ( to: Double ( minFrameDuration . timescale ) )
45+ globalStartTime = config. globalStartTime. rescaled ( to: Double ( maxNominalFrameRate ) )
4646 }
4747 else
4848 {
You can’t perform that action at this time.
0 commit comments