Add experimental av1 support.

This commit is contained in:
Damiano Galassi committed 2021-05-31 12:09:29 +02:00
1 parent 453ccdf598
commit e42154278f
6 files changed
+42 -2

No files matched your search

+8
View File
@@ -223,6 +223,14 @@ typedef struct MP4DemuxHelper {
free(ppValue);
return magicCookie;
}
else if (!strcmp(media_data_name, "av01")) {
uint8_t *ppValue;
uint32_t pValueSize;
MP4GetTrackBytesProperty(_fileHandle, srcTrackId, "mdia.minf.stbl.stsd.av01.av1C.av1Config", &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);