Try the next importer if one fails.

This commit is contained in:
Damiano Galassi committed 2016-04-01 08:26:47 +02:00
1 parent a33fcd02a0
commit 15a0509306
3 files changed
+10 -2

No files matched your search

+7
View File
@@ -183,6 +183,13 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) {
}
}
// Refuse to open fragmented mp4
if (MP4HaveAtom(_fileHandle, "moof")) {
[self stopReading];
[self release];
return nil;
};
// Wraps the tracks in obj-c objects
_tracks = [[NSMutableArray alloc] init];
uint32_t tracksCount = MP4GetNumberOfTracks(_fileHandle, 0, 0);