]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix Quality slider for VP9
authorsr55 <sr55.hb@outlook.com>
Sat, 23 Jul 2016 20:37:02 +0000 (21:37 +0100)
committersr55 <sr55.hb@outlook.com>
Sat, 23 Jul 2016 20:37:09 +0000 (21:37 +0100)
win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs

index fffa01080073b230eead5374446685d0a62c4291..6bce859bffa1355e0f7359e093be801fd3d92891 100644 (file)
@@ -328,6 +328,7 @@ namespace HandBrakeWPF.ViewModels
                         this.Task.Quality = (32 - value);\r
                         break;    \r
                     case VideoEncoder.VP8:\r
+                    case VideoEncoder.VP9:\r
                         this.Task.Quality = (63 - value);\r
                         break;\r
                     case VideoEncoder.X264:\r
@@ -1051,6 +1052,7 @@ namespace HandBrakeWPF.ViewModels
                     break;\r
                 case VideoEncoder.Theora:\r
                 case VideoEncoder.VP8:\r
+                case VideoEncoder.VP9:\r
                     this.QualityMin = 0;\r
                     this.QualityMax = 63;\r
                     break;\r
@@ -1160,6 +1162,7 @@ namespace HandBrakeWPF.ViewModels
                     }\r
                     break;\r
                 case VideoEncoder.VP8:\r
+                case VideoEncoder.VP9:\r
                     if (quality.HasValue)\r
                     {\r
                         int cq;\r