diff options
author | ritsuka <[email protected]> | 2015-02-13 12:07:13 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-02-13 12:07:13 +0000 |
commit | 02010d1f8eb14d196778131661f88d7cb2791ebe (patch) | |
tree | e683e2f57044ed07e575ec4ed584f5bfef4ce262 /macosx | |
parent | 0e8455ed2ca550aac454e798a4b0ca1bb84ad935 (diff) |
MacGui: check whether the denoise preset is valid or not.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6898 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/HBFilters.m | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/macosx/HBFilters.m b/macosx/HBFilters.m index 4fd83b771..c94a87d36 100644 --- a/macosx/HBFilters.m +++ b/macosx/HBFilters.m @@ -172,7 +172,6 @@ NSDictionary *_HandBrake_nlmeansTunesDict; [self postChangedNotification]; } - - (void)setDenoiseTune:(NSString *)denoiseTune { [_denoiseTune autorelease]; @@ -439,7 +438,14 @@ NSDictionary *_HandBrake_nlmeansTunesDict; { // New format, read the values directly self.denoise = preset[@"PictureDenoiseFilter"]; - self.denoisePreset = preset[@"PictureDenoisePreset"]; + if (![[_HandBrake_denoisePresetsDict allValues] containsObject:self.denoisePreset]) + { + self.denoisePreset = @"light"; + } + else + { + self.denoisePreset = preset[@"PictureDenoisePreset"]; + } self.denoiseTune = preset[@"PictureDenoiseTune"]; self.denoiseCustomString = preset[@"PictureDenoiseCustom"]; } |