Fix mp4v passthru.
This commit is contained in:
1 parent
1e942c2d01
commit
5b1fc61d02
2 files changed
+12
-3
No files matched your search
@@ -223,6 +223,14 @@
|
||||
|
||||
return [magicCookie autorelease];
|
||||
}
|
||||
else if (!strcmp(media_data_name, "mp4v")) {
|
||||
uint8_t *ppConfig; uint32_t pConfigSize;
|
||||
MP4GetTrackESConfiguration(_fileHandle, srcTrackId, &ppConfig, &pConfigSize);
|
||||
magicCookie = [NSData dataWithBytes:ppConfig length:pConfigSize];
|
||||
free(ppConfig);
|
||||
|
||||
return magicCookie;
|
||||
}
|
||||
}
|
||||
|
||||
return nil;
|
||||
|
||||
+4
-3
@@ -177,10 +177,11 @@
|
||||
[(MP42VideoTrack*)track width], [(MP42VideoTrack*)track height],
|
||||
MP4_MPEG4_VIDEO_TYPE);
|
||||
|
||||
if ([magicCookie length])
|
||||
if (magicCookie.length) {
|
||||
MP4SetTrackESConfiguration(_fileHandle, dstTrackId,
|
||||
[magicCookie bytes],
|
||||
[magicCookie length]);
|
||||
magicCookie.bytes,
|
||||
magicCookie.length);
|
||||
}
|
||||
|
||||
[helper->importer setActiveTrack:track];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user