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

+5 -5
View File
@@ -751,21 +751,21 @@ static bool GetFirstHeader(FILE* inFile)
}
channelConfig = MP4AV_AdtsGetChannels(firstHeader);
u_int8_t audioType = MP4_INVALID_AUDIO_TYPE;
//u_int8_t audioType = MP4_INVALID_AUDIO_TYPE;
switch (mpegVersion) {
case 0:
audioType = MP4_MPEG4_AUDIO_TYPE;
//audioType = MP4_MPEG4_AUDIO_TYPE;
break;
case 1:
switch (profile) {
case 0:
audioType = MP4_MPEG2_AAC_MAIN_AUDIO_TYPE;
//audioType = MP4_MPEG2_AAC_MAIN_AUDIO_TYPE;
break;
case 1:
audioType = MP4_MPEG2_AAC_LC_AUDIO_TYPE;
//audioType = MP4_MPEG2_AAC_LC_AUDIO_TYPE;
break;
case 2:
audioType = MP4_MPEG2_AAC_SSR_AUDIO_TYPE;
//audioType = MP4_MPEG2_AAC_SSR_AUDIO_TYPE;
break;
case 3:
//*outError = MP42Error(@"The audio could not be opened.", @"Data in file doesn't appear to be valid audio.", 100);
File renamed without changes.
File renamed without changes.
+8 -2
View File
@@ -58,7 +58,7 @@ int compare_color(rgba_color c1, rgba_color c2) {
newObject.location = _location;
newObject.length = _length;
newObject.color = _color;
return newObject;
}
@@ -116,11 +116,17 @@ int compare_color(rgba_color c1, rgba_color c2) {
NSRange contentRange, contentInternalRange;
contentRange.location = openRange.location;
contentRange.length = closeRange.location + closeRange.length - openRange.location;
contentInternalRange = contentRange;
contentInternalRange.location += 1;
contentInternalRange.length -= 2;
// If the internal content range location is equal to the text length
// it means there is no content at all
if (contentInternalRange.location == [_text length]) {
return NSNotFound;
}
content = [_text substringWithRange:contentInternalRange];
NSInteger tagType;
+4 -4
View File
@@ -561,10 +561,10 @@ int readMkvPacket(struct StdIoStream *ioStream, TrackInfo *trackInfo, uint64_t
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]);
}
return [NSData dataWithBytes:colorPalette length:sizeof(UInt32)*16];
}
+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];
}