Preliminary HEVC support.
This commit is contained in:
1 parent
d4ff9c6fa7
commit
71ea7afd67
3 files changed
+12
-1
No files matched your search
@@ -229,6 +229,14 @@
|
||||
|
||||
return [magicCookie autorelease];
|
||||
}
|
||||
else if (!strcmp(media_data_name, "hev1")) {
|
||||
uint8_t *ppValue;
|
||||
uint32_t pValueSize;
|
||||
MP4GetTrackBytesProperty(_fileHandle, srcTrackId, "mdia.minf.stbl.stsd.hev1.hvcC.content", &ppValue, &pValueSize);
|
||||
magicCookie = [NSData dataWithBytes:ppValue length:pValueSize];
|
||||
free(ppValue);
|
||||
return magicCookie;
|
||||
}
|
||||
else if (!strcmp(media_data_name, "mp4v")) {
|
||||
uint8_t *ppConfig; uint32_t pConfigSize;
|
||||
MP4GetTrackESConfiguration(_fileHandle, srcTrackId, &ppConfig, &pConfigSize);
|
||||
|
||||
Reference in new issue
Block a user