We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83ed881 commit 5c9c583Copy full SHA for 5c9c583
Sources/SJSAssetExportSession/SampleWriter.swift
@@ -60,8 +60,11 @@ actor SampleWriter {
60
) async throws {
61
precondition(!videoOutputSettings.isEmpty)
62
63
- let duration =
64
- if let timeRange { timeRange.duration } else { try await asset.load(.duration) }
+ let duration = if let timeRange {
+ timeRange.duration
65
+ } else {
66
+ try await asset.load(.duration)
67
+ }
68
let reader = try AVAssetReader(asset: asset)
69
if let timeRange {
70
reader.timeRange = timeRange
0 commit comments