Use ARC where possible.

This commit is contained in:
Damiano Galassi committed 2016-08-31 14:42:14 +02:00
1 parent 0bef381148
commit b841840561
13 files changed
+123 -207

No files matched your search

+4 -9
View File
@@ -263,7 +263,7 @@ static void insertTagsFromStyleRecord(style_record record, NSMutableString *samp
uint32_t timeScale = MP4GetTrackTimeScale(fileHandle, srcTrackId);
uint64_t samples = MP4GetTrackNumberOfSamples(fileHandle, srcTrackId);
NSMutableString *srtFile = [[[NSMutableString alloc] init] autorelease];
NSMutableString *srtFile = [[NSMutableString alloc] init];
uint64_t r, g, b, a;
MP4GetTrackIntegerProperty(fileHandle, srcTrackId, "mdia.minf.stbl.stsd.tx3g.fontColorRed", &r);
@@ -296,9 +296,9 @@ static void insertTagsFromStyleRecord(style_record record, NSMutableString *samp
NSUInteger textSampleLength = ((pBytes[0] << 8) & 0xff00) + pBytes[1];
if (textSampleLength) {
sampleText = [[[NSMutableString alloc] initWithBytes:(pBytes + 2)
length:textSampleLength
encoding:NSUTF8StringEncoding] autorelease];
sampleText = [[NSMutableString alloc] initWithBytes:(pBytes + 2)
length:textSampleLength
encoding:NSUTF8StringEncoding];
}
// Let's see if there is an atom after the text sample
@@ -452,9 +452,4 @@ static void insertTagsFromStyleRecord(style_record record, NSMutableString *samp
return self;
}
- (void)dealloc
{
[super dealloc];
}
@end