mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
[WIP] Stickers editor
This commit is contained in:
@@ -69,6 +69,8 @@ public final class SoftwareVideoSource {
|
||||
private var enqueuedFrames: [(MediaTrackFrame, CGFloat, CGFloat, Bool)] = []
|
||||
private var hasReadToEnd: Bool = false
|
||||
|
||||
public private(set) var reportedDuration: CMTime = .invalid
|
||||
|
||||
public init(path: String, hintVP9: Bool, unpremultiplyAlpha: Bool) {
|
||||
let _ = FFMpegMediaFrameSourceContextHelpers.registerFFMpegGlobals
|
||||
|
||||
@@ -142,6 +144,8 @@ public final class SoftwareVideoSource {
|
||||
}
|
||||
}
|
||||
|
||||
self.reportedDuration = CMTime(seconds: avFormatContext.duration(), preferredTimescale: CMTimeScale(NSEC_PER_SEC))
|
||||
|
||||
self.videoStream = videoStream
|
||||
|
||||
if let videoStream = self.videoStream {
|
||||
|
||||
Reference in New Issue
Block a user