Fix video stickers in media editor

This commit is contained in:
Ilya Laktyushin
2022-01-27 21:29:01 +03:00
parent 1e2695839a
commit e61f7a4de8
7 changed files with 19 additions and 16 deletions

View File

@@ -387,6 +387,11 @@ public func cacheVideoStickerFrames(path: String, size: CGSize, cacheKey: String
currentFrame += 1
}
if frameCount > 0 {
file.seek(position: 4)
let _ = file.write(&frameCount, count: 4)
}
subscriber.putNext(.tempFile(tempFile))
subscriber.putCompletion()
/*print("animation render time \(CACurrentMediaTime() - startTime)")