diff options
author | sr55 <[email protected]> | 2019-10-14 12:09:00 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2019-10-14 12:09:18 +0100 |
commit | 880489444d541f8030bfd52a524b0d0be2d0e5b2 (patch) | |
tree | ba82429ef9f9641af14211cdb4cf24c29ca49a74 /win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs | |
parent | 9e2660ce49c534f3c847706a847bb4229bd739ea (diff) |
WinGui: Remove "QP" label for NVENC since it's no longer QP. Fixes #2356
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs index f1a5b98a3..f453c3dfb 100644 --- a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs @@ -431,8 +431,21 @@ namespace HandBrakeWPF.ViewModels {
get
{
- return this.SelectedVideoEncoder == VideoEncoder.X264 || this.SelectedVideoEncoder == VideoEncoder.X264_10 || this.SelectedVideoEncoder == VideoEncoder.X265
- || this.SelectedVideoEncoder == VideoEncoder.X265_10 || this.SelectedVideoEncoder == VideoEncoder.X265_12 ? "RF" : "QP";
+ if (this.SelectedVideoEncoder == VideoEncoder.X264 || this.SelectedVideoEncoder == VideoEncoder.X264_10
+ || this.SelectedVideoEncoder == VideoEncoder.X265
+ || this.SelectedVideoEncoder == VideoEncoder.X265_10
+ || this.SelectedVideoEncoder == VideoEncoder.X265_12)
+ {
+ return "RF";
+ }
+
+ if (this.SelectedVideoEncoder == VideoEncoder.NvencH264
+ || this.SelectedVideoEncoder == VideoEncoder.NvencH265)
+ {
+ return string.Empty;
+ }
+
+ return "QP";
}
}
|