diff --git a/MP42/MP42File.m b/MP42/MP42File.m
index b75e556..6826de7 100644
--- a/MP42/MP42File.m
+++ b/MP42/MP42File.m
@@ -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];
}
diff --git a/MP42/MP42Foundation-Info.plist b/MP42/MP42Foundation-Info.plist
index 272feab..ddb679b 100644
--- a/MP42/MP42Foundation-Info.plist
+++ b/MP42/MP42Foundation-Info.plist
@@ -9,7 +9,7 @@
CFBundleIconFile
CFBundleIdentifier
- com.galad.${PRODUCT_NAME:rfc1034identifier}
+ $(PRODUCT_BUNDLE_IDENTIFIER)
CFBundleInfoDictionaryVersion
6.0
CFBundleName
diff --git a/MP42/MP42Metadata.m b/MP42/MP42Metadata.m
index 78feec5..a144652 100644
--- a/MP42/MP42Metadata.m
+++ b/MP42/MP42Metadata.m
@@ -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)
diff --git a/MP42/MP42Utilities.m b/MP42/MP42Utilities.m
index 9ba0642..5d3ca5e 100644
--- a/MP42/MP42Utilities.m
+++ b/MP42/MP42Utilities.m
@@ -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];
}
diff --git a/MP42Foundation.xcodeproj/project.pbxproj b/MP42Foundation.xcodeproj/project.pbxproj
index 8ac8d02..379c6eb 100644
--- a/MP42Foundation.xcodeproj/project.pbxproj
+++ b/MP42Foundation.xcodeproj/project.pbxproj
@@ -853,7 +853,7 @@
A9B9C1E4182391DF00416A4E /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0630;
+ LastUpgradeCheck = 0700;
ORGANIZATIONNAME = "Damiano Galassi";
TargetAttributes = {
A9B9C203182391DF00416A4E = {
@@ -1118,7 +1118,7 @@
suppress,
);
PRODUCT_NAME = "$(TARGET_NAME)";
- SDKROOT = macosx10.8;
+ SDKROOT = macosx;
};
name = Debug;
};
@@ -1145,7 +1145,7 @@
suppress,
);
PRODUCT_NAME = "$(TARGET_NAME)";
- SDKROOT = macosx10.8;
+ SDKROOT = macosx;
};
name = Release;
};
@@ -1261,6 +1261,7 @@
"$(SRCROOT)/ffmpeg/lib",
"$(SRCROOT)/Tesseract/lib",
);
+ PRODUCT_BUNDLE_IDENTIFIER = "com.galad.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = MP42Foundation;
WRAPPER_EXTENSION = framework;
};
@@ -1283,6 +1284,7 @@
"$(SRCROOT)/ffmpeg/lib",
"$(SRCROOT)/Tesseract/lib",
);
+ PRODUCT_BUNDLE_IDENTIFIER = "com.galad.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = MP42Foundation;
WRAPPER_EXTENSION = framework;
};
@@ -1304,6 +1306,7 @@
"$(inherited)",
);
INFOPLIST_FILE = "MP42Tests/MP42FoundationTests-Info.plist";
+ PRODUCT_BUNDLE_IDENTIFIER = "com.galad.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = MP42FoundationFoundationTests;
TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = xctest;
@@ -1322,6 +1325,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "MP42/MP42Foundation-Prefix.pch";
INFOPLIST_FILE = "MP42Tests/MP42FoundationTests-Info.plist";
+ PRODUCT_BUNDLE_IDENTIFIER = "com.galad.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = MP42FoundationFoundationTests;
TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = xctest;
diff --git a/MP42Tests/MP42FoundationTests-Info.plist b/MP42Tests/MP42FoundationTests-Info.plist
index 14c7f13..169b6f7 100644
--- a/MP42Tests/MP42FoundationTests-Info.plist
+++ b/MP42Tests/MP42FoundationTests-Info.plist
@@ -7,7 +7,7 @@
CFBundleExecutable
${EXECUTABLE_NAME}
CFBundleIdentifier
- com.galad.${PRODUCT_NAME:rfc1034identifier}
+ $(PRODUCT_BUNDLE_IDENTIFIER)
CFBundleInfoDictionaryVersion
6.0
CFBundlePackageType
diff --git a/UniversalDetector/UniversalDetector.xcodeproj/project.pbxproj b/UniversalDetector/UniversalDetector.xcodeproj/project.pbxproj
index 49e012a..a3a959f 100644
--- a/UniversalDetector/UniversalDetector.xcodeproj/project.pbxproj
+++ b/UniversalDetector/UniversalDetector.xcodeproj/project.pbxproj
@@ -449,7 +449,7 @@
0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0630;
+ LastUpgradeCheck = 0700;
};
buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "UniversalDetector" */;
compatibilityVersion = "Xcode 3.2";