Switch to FourCC instead of NSStrings for media type and formats.
This commit is contained in:
1 parent
71ea7afd67
commit
1c562a65ea
32 files changed
+374
-409
No files matched your search
@@ -38,7 +38,7 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
- (instancetype)initWithMediaFormat:(NSString *)format {
|
||||
- (instancetype)initWithMediaFormat:(FourCharCode)format {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
_priorityQueue = [[MP42Heap alloc] initWithCapacity:32 andComparator:^NSComparisonResult(MP42SampleBuffer * obj1, MP42SampleBuffer * obj2) {
|
||||
@@ -46,11 +46,11 @@
|
||||
}];
|
||||
|
||||
|
||||
if ([format isEqualToString:MP42AudioFormatAAC]) {
|
||||
if (format == kMP42AudioCodecType_MPEG4AAC) {
|
||||
_priming = 2112;
|
||||
_primingTimescale = 48000;
|
||||
}
|
||||
else if ([format isEqualToString:MP42AudioFormatHEAAC])
|
||||
else if (format == kMP42AudioCodecType_MPEG4AAC_HE)
|
||||
{
|
||||
_priming = 4224;
|
||||
_primingTimescale = 48000;
|
||||
|
||||
Reference in new issue
Block a user