Add two methods two return the supported UTIs

This commit is contained in:
Damiano Galassi committed 2026-09-22 18:50:05 +02:00
1 parent 86dce73880
commit 57236970a3
19 files changed
+127 -16

No files matched your search

+6 -1
View File
@@ -454,7 +454,7 @@ extern "C" bool MP4AV_AacGetConfiguration_SBR(
pConfig[2] = (syncExtensionType >> 3) & 0xFF;
pConfig[3] = ((syncExtensionType & 0x7) << 5) | 5 /* ext ot id */;
pConfig[4] = ((1 & 0x1) << 7) | (extensionSamplingRateIndex << 3);
pConfig[4] = (0x1 << 7) | (extensionSamplingRateIndex << 3);
*ppConfig = pConfig;
*pConfigLength = 5;
@@ -724,6 +724,11 @@ static bool GetFirstHeader(FILE* inFile)
return @[@"aac"];
}
+ (NSArray<UTType *> *)supportedContentTypes
{
return @[[UTType typeWithFilenameExtension:@"aac"]];
}
- (instancetype)initWithURL:(NSURL *)fileURL error:(NSError * __autoreleasing *)outError
{
if ((self = [super initWithURL:fileURL])) {