Modernized the projects and fixed a warning

This commit is contained in:
Damiano Galassi committed 2015-08-19 14:48:40 +02:00
1 parent 4f1fc0daaf
commit bba1753c48
7 files changed
+24 -18

No files matched your search

+1 -1
View File
@@ -893,7 +893,7 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) {
[NSGraphicsContext restoreGraphicsState];
imageData = [bitmap representationUsingType:NSJPEGFileType properties:nil];
imageData = [bitmap representationUsingType:NSJPEGFileType properties:@{}];
[bitmap release];
}
+1 -1
View File
@@ -9,7 +9,7 @@
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.galad.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
+12 -10
View File
@@ -1291,9 +1291,7 @@ static const genreType_t genreType_strings[] = {
for (i = 0; i < [artworks count]; i++) {
MP42Image *artwork;
MP4TagArtwork newArtwork;
NSArray *representations;
NSData *bitmapData;
artwork = [artworks objectAtIndex:i];
if (artwork.data) {
newArtwork.data = (void *)[artwork.data bytes];
@@ -1301,13 +1299,17 @@ static const genreType_t genreType_strings[] = {
newArtwork.type = artwork.type;
}
else {
representations = [artwork.image representations];
bitmapData = [NSBitmapImageRep representationOfImageRepsInArray:representations
usingType:NSPNGFileType properties:nil];
newArtwork.data = (void *)[bitmapData bytes];
newArtwork.size = [bitmapData length];
newArtwork.type = MP4_ART_PNG;
NSArray *representations = [artwork.image representations];
if (representations.count) {
NSData *bitmapData = [NSBitmapImageRep representationOfImageRepsInArray:representations
usingType:NSPNGFileType properties:@{}];
if (bitmapData) {
newArtwork.data = (void *)[bitmapData bytes];
newArtwork.size = [bitmapData length];
newArtwork.type = MP4_ART_PNG;
}
}
}
if (tags->artworkCount > i)
+1 -1
View File
@@ -45,7 +45,7 @@ MP42Duration TimeFromString(NSString *time_string, MP42Duration timeScale)
NSArray *supportedFileFormat()
{
return [NSArray arrayWithObjects:@"scc", @"smi", @"txt", @"m4v", @"mp4", @"m4a", @"m4a", @"mov", @"mts", @"m2ts",
return [NSArray arrayWithObjects:@"scc", @"smi", @"txt", @"m4v", @"mp4", @"m4a", @"m4a", @"mov", @"ts", @"mts", @"m2ts",
@"mkv", @"mka", @"mks", @"h264", @"264", @"idx", @"aac", @"ac3", @"srt", nil];
}