]> granicus.if.org Git - handbrake/commitdiff
WinGui: Remove "QP" label for NVENC since it's no longer QP. Fixes #2356
authorsr55 <sr55.hb@outlook.com>
Mon, 14 Oct 2019 11:09:00 +0000 (12:09 +0100)
committersr55 <sr55.hb@outlook.com>
Mon, 14 Oct 2019 11:09:18 +0000 (12:09 +0100)
win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs

index f1a5b98a31cd60489ecdfb4586caa8724c186c6e..f453c3dfbd531982a8ef44d615c0749c297a0453 100644 (file)
@@ -431,8 +431,21 @@ namespace HandBrakeWPF.ViewModels
         {\r
             get\r
             {\r
-                return this.SelectedVideoEncoder == VideoEncoder.X264 || this.SelectedVideoEncoder == VideoEncoder.X264_10 || this.SelectedVideoEncoder == VideoEncoder.X265\r
-                       || this.SelectedVideoEncoder == VideoEncoder.X265_10 || this.SelectedVideoEncoder == VideoEncoder.X265_12 ? "RF" : "QP";\r
+                if (this.SelectedVideoEncoder == VideoEncoder.X264 || this.SelectedVideoEncoder == VideoEncoder.X264_10\r
+                                                                   || this.SelectedVideoEncoder == VideoEncoder.X265\r
+                                                                   || this.SelectedVideoEncoder == VideoEncoder.X265_10\r
+                                                                   || this.SelectedVideoEncoder == VideoEncoder.X265_12)\r
+                {\r
+                    return "RF";\r
+                }\r
+\r
+                if (this.SelectedVideoEncoder == VideoEncoder.NvencH264\r
+                    || this.SelectedVideoEncoder == VideoEncoder.NvencH265)\r
+                {\r
+                    return string.Empty;\r
+                }\r
+\r
+                return "QP";\r
             }\r
         }\r
 \r