Renamed and warnings fixed.

This commit is contained in:
Damiano Galassi committed 2013-11-05 11:21:31 +01:00
1 parent 22afab8481
commit f832acb2b6
11 files changed
+68 -62

No files matched your search

+4 -4
View File
@@ -273,10 +273,10 @@ static NSArray* LoadVobSubSubtitles(NSURL *theDirectory, NSString *filename)
if (palette != NULL) {
sscanf(palette, "palette: %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx, %lx",
&colorPalette[ 0], &colorPalette[ 1], &colorPalette[ 2], &colorPalette[ 3],
&colorPalette[ 4], &colorPalette[ 5], &colorPalette[ 6], &colorPalette[ 7],
&colorPalette[ 8], &colorPalette[ 9], &colorPalette[10], &colorPalette[11],
&colorPalette[12], &colorPalette[13], &colorPalette[14], &colorPalette[15]);
(unsigned long*)&colorPalette[ 0], (unsigned long*)&colorPalette[ 1], (unsigned long*)&colorPalette[ 2], (unsigned long*)&colorPalette[ 3],
(unsigned long*)&colorPalette[ 4], (unsigned long*)&colorPalette[ 5], (unsigned long*)&colorPalette[ 6], (unsigned long*)&colorPalette[ 7],
(unsigned long*)&colorPalette[ 8], (unsigned long*)&colorPalette[ 9], (unsigned long*)&colorPalette[10], (unsigned long*)&colorPalette[11],
(unsigned long*)&colorPalette[12], (unsigned long*)&colorPalette[13], (unsigned long*)&colorPalette[14], (unsigned long*)&colorPalette[15]);
}
magicCookie = [NSData dataWithBytes:colorPalette length:sizeof(UInt32)*16];
}