Remove some superfluos MP42FileImporter methods.

This commit is contained in:
Damiano Galassi committed 2020-09-21 19:27:11 +02:00
1 parent df7555df8f
commit 86de20e308
16 files changed
+172 -278

No files matched your search

+2 -11
View File
@@ -314,6 +314,7 @@ static bool GetFirstHeader(FILE* inFile)
lfeon = (firstHeader[6] >> lfe_offset) & 0x1;
samplesPerSecond = MP4AV_Ac3GetSamplingRate(firstHeader);
newTrack.timescale = samplesPerSecond;
readAC3Config(acmod, lfeon, &channels, &channelLayoutTag);
@@ -328,7 +329,7 @@ static bool GetFirstHeader(FILE* inFile)
[ac3Info appendBytes:&lfeon length:sizeof(uint64_t)];
[ac3Info appendBytes:&frmsizecod length:sizeof(uint64_t)];
[newTrack setDataLength:[[[[NSFileManager defaultManager] attributesOfItemAtPath:self.fileURL.path error:nil] valueForKey:NSFileSize] unsignedLongLongValue]];
[newTrack setDataLength:[[[NSFileManager.defaultManager attributesOfItemAtPath:self.fileURL.path error:nil] valueForKey:NSFileSize] unsignedLongLongValue]];
[self addTrack:newTrack];
}
@@ -336,16 +337,6 @@ static bool GetFirstHeader(FILE* inFile)
return self;
}
- (UInt32)timescaleForTrack:(MP42Track *)track
{
return samplesPerSecond;
}
- (NSSize)sizeForTrack:(MP42VideoTrack *)track
{
return NSMakeSize(0, 0);
}
- (NSData *)magicCookieForTrack:(MP42Track *)track
{
return ac3Info;