Handle files with the “m4r” extension.

This commit is contained in:
Damiano Galassi committed 2013-12-14 10:18:26 +01:00
1 parent a8d8e3ad1b
commit 7ca322eea8
3 files changed
+6 -5

No files matched your search

+4 -4
View File
@@ -494,15 +494,15 @@ static void logCallback(MP4LogLevel loglevel, const char* fmt, va_list ap)
supportedBrands[2] = "mp42";
supportedBrands[3] = "isom";
supportedBrandsCount = 4;
}
else if ([fileExtension isEqualToString:MP42FileTypeM4A] || [fileExtension isEqualToString:MP42FileTypeM4A]) {
} else if ([fileExtension isEqualToString:MP42FileTypeM4A] ||
[fileExtension isEqualToString:MP42FileTypeM4B] ||
[fileExtension isEqualToString:MP42FileTypeM4R]) {
majorBrand = "M4A ";
supportedBrands[0] = majorBrand;
supportedBrands[1] = "mp42";
supportedBrands[2] = "isom";
supportedBrandsCount = 3;
}
else {
} else {
supportedBrands[0] = majorBrand;
supportedBrands[1] = "isom";
supportedBrandsCount = 2;
+1 -1
View File
@@ -18,7 +18,7 @@ extern NSString *const MP42FileTypeMP4;
extern NSString *const MP42FileTypeM4V;
extern NSString *const MP42FileTypeM4A;
extern NSString *const MP42FileTypeM4B;
extern NSString *const MP42FileTypeM4R;
// Media Type
extern NSString *const MP42MediaTypeVideo;
+1
View File
@@ -13,6 +13,7 @@ NSString *const MP42FileTypeMP4 = @"mp4";
NSString *const MP42FileTypeM4V = @"m4v";
NSString *const MP42FileTypeM4A = @"m4a";
NSString *const MP42FileTypeM4B = @"m4b";
NSString *const MP42FileTypeM4R = @"m4r";
// Media Type