]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix a logic error in 8vs10bit video encoder detection in the advanced view.
authorsr55 <sr55.hb@outlook.com>
Fri, 17 Feb 2017 19:11:19 +0000 (19:11 +0000)
committersr55 <sr55.hb@outlook.com>
Fri, 17 Feb 2017 19:13:09 +0000 (19:13 +0000)
win/CS/HandBrakeWPF/ViewModels/X264ViewModel.cs

index ac92b760f7c6cf64ec60185676f1ad475e1943f8..9a9e905e00cd9e02f78f34aaf23f0b7b6f7c383e 100644 (file)
@@ -934,7 +934,7 @@ namespace HandBrakeWPF.ViewModels
             this.Task.PropertyChanged += this.Task_PropertyChanged;\r
             this.AdvancedOptionsString = preset.Task.AdvancedEncoderOptions;\r
 \r
-            if (task.ShowAdvancedTab && task.VideoEncoder == VideoEncoder.X264 && task.VideoEncoder == VideoEncoder.X264_10)\r
+            if (task.ShowAdvancedTab && (task.VideoEncoder == VideoEncoder.X264 || task.VideoEncoder == VideoEncoder.X264_10))\r
             {\r
                 this.ShowX264AdvancedOptions = true;\r
                 this.NotifyOfPropertyChange(() => ShowX264AdvancedOptions);\r