absolute value the video resolution
This commit is contained in:
1 parent
1eab5e5476
commit
d45a64bb19
3 files changed
+5
-5
No files matched your search
@@ -54,8 +54,8 @@ class VideoHandler {
|
||||
throw AVError(.decodeFailed)
|
||||
}
|
||||
let size = track.naturalSize.applying(track.preferredTransform)
|
||||
let width = Int(size.width)
|
||||
let height = Int(size.height)
|
||||
let width = Int(abs(size.width))
|
||||
let height = Int(abs(size.height))
|
||||
let fps = track.nominalFrameRate
|
||||
let duration = CMTimeGetSeconds(asset.duration)
|
||||
let totalFrames = Int(fps * Float(duration))
|
||||
|
||||
Reference in new issue
Block a user