Merge master changes

This commit is contained in:
Damiano Galassi committed 2015-08-19 14:57:02 +02:00
commit 3feee130b8
4 files changed
+94 -66

No files matched your search

+17 -2
View File
@@ -206,9 +206,24 @@
}
// DTS -> always convert.
if ([track.format isEqualToString:MP42AudioFormatDTS]) {
if ([[[NSUserDefaults standardUserDefaults] valueForKey:@"SBAudioDtsPassthrough"] boolValue]) {
MP42AudioTrack *copy = [track copy];
copy.needConversion = YES;
copy.mixdownType = SBDolbyPlIIMixdown;
[self.mp4File addTrack:copy];
[copy release];
}
else {
track.needConversion = YES;
}
}
// VobSub -> only if specified in the prefs.
if ([track.format isEqualToString:MP42AudioFormatDTS] ||
([track.format isEqualToString:MP42SubtitleFormatVobSub] && [[[NSUserDefaults standardUserDefaults] valueForKey:@"SBSubtitleConvertBitmap"] boolValue]))
if (([track.format isEqualToString:MP42SubtitleFormatVobSub] && [[[NSUserDefaults standardUserDefaults] valueForKey:@"SBSubtitleConvertBitmap"] boolValue]))
track.needConversion = YES;
// If an audio track needs to be converted, apply the mixdown from the preferences.