summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs19
1 files changed, 11 insertions, 8 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
index 241423e9d..13be72527 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
@@ -963,15 +963,18 @@ namespace HandBrake.ApplicationServices.Utilities
// Options that apply to both x264 and QuickSync
if (task.VideoEncoder == VideoEncoder.QuickSync || task.VideoEncoder == VideoEncoder.X264)
{
- if (task.H264Level != "Auto")
+ // when using x264 with the advanced panel, the H.264 profile/level widgets are disabled
+ if (!(task.VideoEncoder == VideoEncoder.X264 && task.ShowAdvancedTab))
{
- query += string.Format(" --h264-level=\"{0}\" ", task.H264Level);
- }
-
- if (task.H264Profile != x264Profile.None)
- {
- query += string.Format(
- " --h264-profile={0} ", task.H264Profile.ToString().ToLower().Replace(" ", string.Empty));
+ if (task.H264Level != "Auto")
+ {
+ query += string.Format(" --h264-level=\"{0}\" ", task.H264Level);
+ }
+ if (task.H264Profile != x264Profile.None)
+ {
+ query += string.Format(
+ " --h264-profile={0} ", task.H264Profile.ToString().ToLower().Replace(" ", string.Empty));
+ }
}
if (task.VideoEncoder == VideoEncoder.QuickSync)