AVAssetTrack timeRange.start is not correct
Originator: | yzwang.nj | ||
Number: | rdar://36215131 | Date Originated: | December 26 2017, 6:54 PM |
Status: | Open | Resolved: | |
Product: | AVFoundation | Product Version: | |
Classification: | Reproducible: | Yes |
When video's video track first frame PTS is not zero, AVAssetTrack's timeRange.start is not correct. Steps to Reproduce: import AVFoundation let sampleURL = Bundle.main.url(forResource: "sample", withExtension: "mp4")! let asset = AVAsset(url: sampleURL) print(asset.duration) let videoTrack = asset.tracks(withMediaType: .video).first! print(videoTrack.timeRange) Expected Results: correct PTS Actual Results: 0 Version/Build: iOS 10.2.1 macOS 10.12.6
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!