Handle files with the “m4r” extension.
This commit is contained in:
1 parent
a8d8e3ad1b
commit
7ca322eea8
3 files changed
+6
-5
No files matched your search
+4
-4
@@ -494,15 +494,15 @@ static void logCallback(MP4LogLevel loglevel, const char* fmt, va_list ap)
|
|||||||
supportedBrands[2] = "mp42";
|
supportedBrands[2] = "mp42";
|
||||||
supportedBrands[3] = "isom";
|
supportedBrands[3] = "isom";
|
||||||
supportedBrandsCount = 4;
|
supportedBrandsCount = 4;
|
||||||
}
|
} else if ([fileExtension isEqualToString:MP42FileTypeM4A] ||
|
||||||
else if ([fileExtension isEqualToString:MP42FileTypeM4A] || [fileExtension isEqualToString:MP42FileTypeM4A]) {
|
[fileExtension isEqualToString:MP42FileTypeM4B] ||
|
||||||
|
[fileExtension isEqualToString:MP42FileTypeM4R]) {
|
||||||
majorBrand = "M4A ";
|
majorBrand = "M4A ";
|
||||||
supportedBrands[0] = majorBrand;
|
supportedBrands[0] = majorBrand;
|
||||||
supportedBrands[1] = "mp42";
|
supportedBrands[1] = "mp42";
|
||||||
supportedBrands[2] = "isom";
|
supportedBrands[2] = "isom";
|
||||||
supportedBrandsCount = 3;
|
supportedBrandsCount = 3;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
supportedBrands[0] = majorBrand;
|
supportedBrands[0] = majorBrand;
|
||||||
supportedBrands[1] = "isom";
|
supportedBrands[1] = "isom";
|
||||||
supportedBrandsCount = 2;
|
supportedBrandsCount = 2;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ extern NSString *const MP42FileTypeMP4;
|
|||||||
extern NSString *const MP42FileTypeM4V;
|
extern NSString *const MP42FileTypeM4V;
|
||||||
extern NSString *const MP42FileTypeM4A;
|
extern NSString *const MP42FileTypeM4A;
|
||||||
extern NSString *const MP42FileTypeM4B;
|
extern NSString *const MP42FileTypeM4B;
|
||||||
|
extern NSString *const MP42FileTypeM4R;
|
||||||
|
|
||||||
// Media Type
|
// Media Type
|
||||||
extern NSString *const MP42MediaTypeVideo;
|
extern NSString *const MP42MediaTypeVideo;
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ NSString *const MP42FileTypeMP4 = @"mp4";
|
|||||||
NSString *const MP42FileTypeM4V = @"m4v";
|
NSString *const MP42FileTypeM4V = @"m4v";
|
||||||
NSString *const MP42FileTypeM4A = @"m4a";
|
NSString *const MP42FileTypeM4A = @"m4a";
|
||||||
NSString *const MP42FileTypeM4B = @"m4b";
|
NSString *const MP42FileTypeM4B = @"m4b";
|
||||||
|
NSString *const MP42FileTypeM4R = @"m4r";
|
||||||
|
|
||||||
|
|
||||||
// Media Type
|
// Media Type
|
||||||
|
|||||||
Reference in new issue
Block a user