Remove 32bit only files (QuickTime) and update headers.

This commit is contained in:
Damiano Galassi committed 2016-07-25 17:19:22 +02:00
1 parent 67db65596f
commit 3b941b8c9e
50 files changed
+236 -3172

No files matched your search

+7 -2
View File
@@ -42,7 +42,10 @@
@end
@implementation MP42AVFImporter
@implementation MP42AVFImporter {
@private
AVAsset *_localAsset;
}
+ (NSArray<NSString *> *)supportedFileFormats {
return @[@"mov", @"mp4", @"m4v", @"m4a", @"m2ts", @"ts", @"mts", @"ac3", @"eac3", @"ec3", @"webvtt", @"vtt"];
@@ -372,7 +375,9 @@
}
CMTimeRange timeRange = track.timeRange;
newTrack.duration = timeRange.duration.value / timeRange.duration.timescale * 1000;
if (timeRange.duration.timescale > 0) {
newTrack.duration = timeRange.duration.value / timeRange.duration.timescale * 1000;
}
[self addTrack:newTrack];
[newTrack release];