Try the next importer if one fails.
This commit is contained in:
1 parent
a33fcd02a0
commit
15a0509306
3 files changed
+10
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user