mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Fix short video playback & scroll-to-end
This commit is contained in:
@@ -622,6 +622,12 @@ final class FFMpegMediaFrameSourceContext: NSObject {
|
||||
}
|
||||
if let closestFrame = closestFrame {
|
||||
actualPts = closestFrame.pts
|
||||
} else {
|
||||
if let videoStream = initializedState.videoStream {
|
||||
actualPts = videoStream.duration
|
||||
} else {
|
||||
actualPts = extraVideoFrames.last!.pts
|
||||
}
|
||||
}
|
||||
}
|
||||
if let audioStream = initializedState.audioStream {
|
||||
|
||||
Reference in New Issue
Block a user