Fix a clang static analyzer warning
This commit is contained in:
1 file changed
+11
-7
+11
-7
@@ -811,15 +811,19 @@ static bool GetFirstHeader(FILE* inFile)
|
|||||||
samplesPerSecond,
|
samplesPerSecond,
|
||||||
channelConfig);
|
channelConfig);
|
||||||
|
|
||||||
newTrack.timescale = samplesPerSecond;
|
if (pConfig) {
|
||||||
newTrack.channels = channelConfig;
|
newTrack.timescale = samplesPerSecond;
|
||||||
newTrack.dataLength = [[[NSFileManager.defaultManager attributesOfItemAtPath:self.fileURL.path error:nil] valueForKey:NSFileSize] unsignedLongLongValue];
|
newTrack.channels = channelConfig;
|
||||||
|
newTrack.dataLength = [[[NSFileManager.defaultManager attributesOfItemAtPath:self.fileURL.path error:nil] valueForKey:NSFileSize] unsignedLongLongValue];
|
||||||
|
|
||||||
aacInfo = [[NSMutableData alloc] init];
|
aacInfo = [[NSMutableData alloc] init];
|
||||||
[aacInfo appendBytes:pConfig length:configLength];
|
[aacInfo appendBytes:pConfig length:configLength];
|
||||||
free(pConfig);
|
free(pConfig);
|
||||||
|
|
||||||
[self addTrack:newTrack];
|
[self addTrack:newTrack];
|
||||||
|
} else {
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
|||||||
Reference in new issue
Block a user