Make MP4GetTrackMediaDataName aware of multiple sample descriptions. Only the first one is ready at the moment.

This commit is contained in:
Damiano Galassi committed 2021-12-09 12:03:28 +01:00
1 parent deb2e3b0fe
commit 45552f45c0
6 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ MP42_OBJC_DIRECT_MEMBERS
if (self) {
MP4GetTrackFloatProperty(fileHandle, self.trackId, "tkhd.volume", &_volume);
const char *dataName = MP4GetTrackMediaDataName(fileHandle, self.trackId);
const char *dataName = MP4GetTrackMediaDataName(fileHandle, self.trackId, 0);
_extensionType = kMP42AudioEmbeddedExtension_None;
if (dataName && !strcmp(dataName, "mp4a")) {