summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-07-28 17:27:31 +0100
committersr55 <[email protected]>2019-07-28 17:28:17 +0100
commit9446eba9eac07b6b47dc6d6e9f3c2a7331b38aa0 (patch)
tree30617c001759774cc541424e696c5a732e8914d6 /win/CS
parent63ad5d8a591cafd660e351d2c670a536b3d4222e (diff)
WinGui: Force set FastDecode = false for x265. It's only an option under the dropdown, not an additional set. Fixes #2211
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs
index cf397481d..f1a5b98a3 100644
--- a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs
@@ -769,7 +769,7 @@ namespace HandBrakeWPF.ViewModels
this.Task.VideoTunes.Add(value);
}
- if (hasFastDecode)
+ if ((this.SelectedVideoEncoder == VideoEncoder.X264 || this.SelectedVideoEncoder == VideoEncoder.X264_10) && hasFastDecode)
{
this.Task.VideoTunes.Add(VideoTune.FastDecode);
}
@@ -954,6 +954,7 @@ namespace HandBrakeWPF.ViewModels
if (preset.Task.VideoEncoder == VideoEncoder.X265 || preset.Task.VideoEncoder == VideoEncoder.X265_10 || preset.Task.VideoEncoder == VideoEncoder.X265_12)
{
+ this.FastDecode = false;
this.VideoTune = (preset.Task.VideoTunes != null && preset.Task.VideoTunes.Any() ? preset.Task.VideoTunes.FirstOrDefault() : this.VideoTunes.FirstOrDefault()) ?? VideoTune.None;
}
else