Add support for muxing some kind of Dolby Vision tracks.

This commit is contained in:
Damiano Galassi committed 2021-12-07 19:03:12 +01:00
1 parent e13b6c4228
commit ee26f9f46a
3 files changed
+69 -9

No files matched your search

+16
View File
@@ -223,6 +223,22 @@ typedef struct MP4DemuxHelper {
free(ppValue);
return magicCookie;
}
else if (!strcmp(media_data_name, "dvhe")) {
uint8_t *ppValue;
uint32_t pValueSize;
MP4GetTrackBytesProperty(_fileHandle, srcTrackId, "mdia.minf.stbl.stsd.dvhe.hvcC.content", &ppValue, &pValueSize);
magicCookie = [NSData dataWithBytes:ppValue length:pValueSize];
free(ppValue);
return magicCookie;
}
else if (!strcmp(media_data_name, "dvh1")) {
uint8_t *ppValue;
uint32_t pValueSize;
MP4GetTrackBytesProperty(_fileHandle, srcTrackId, "mdia.minf.stbl.stsd.dvh1.hvcC.content", &ppValue, &pValueSize);
magicCookie = [NSData dataWithBytes:ppValue length:pValueSize];
free(ppValue);
return magicCookie;
}
else if (!strcmp(media_data_name, "av01")) {
uint8_t *ppValue;
uint32_t pValueSize;