mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-03 13:13:55 +00:00
Video editor fixes
This commit is contained in:
parent
4778f56a24
commit
be8086b3d5
@ -329,7 +329,7 @@ public final class LegacyPaintEntityRenderer: NSObject, TGPhotoPaintEntityRender
|
||||
var result: Double
|
||||
let minDuration: Double = 3.0
|
||||
if durations.count > 1 {
|
||||
result = min(6.0, Double(durations.reduce(1) { lcm(Int32($0), Int32($1)) }))
|
||||
result = min(6.0, Double(durations.reduce(1.0) { Double(lcm(Int32($0 * 10.0), Int32($1 * 10.0))) }) / 10.0)
|
||||
} else if let duration = durations.first {
|
||||
result = duration
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user