From 6a7aa982252348fe7b3cdf981f37bd6677d80006 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 13 May 2012 14:34:47 +0000 Subject: WinGui: Fix a bug that was causing the incorrect quality setting to be set. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4672 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../Utilities/QueryGeneratorUtility.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'win/CS') diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs index 4e98f2da3..acba0ce3c 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs @@ -409,8 +409,6 @@ namespace HandBrake.ApplicationServices.Utilities break; } - double x264CqStep = UserSettingService.GetUserSetting(ASUserSettingConstants.X264Step); - switch (task.VideoEncodeRateType) { case VideoEncodeRateType.AverageBitrate: @@ -422,17 +420,14 @@ namespace HandBrake.ApplicationServices.Utilities switch (task.VideoEncoder) { case VideoEncoder.FFMpeg: - value = 31 - (task.Quality.Value - 1); - query += string.Format(" -q {0}", value.ToString(CultureInfo.InvariantCulture)); + case VideoEncoder.FFMpeg2: + query += string.Format(" -q {0}", task.Quality.Value.ToString(CultureInfo.InvariantCulture)); break; case VideoEncoder.X264: - value = 51 - (task.Quality.Value * x264CqStep); - value = Math.Round(value, 2); - query += string.Format(" -q {0}", value.ToString(CultureInfo.InvariantCulture)); + query += string.Format(" -q {0}", task.Quality.Value.ToString(CultureInfo.InvariantCulture)); break; case VideoEncoder.Theora: - value = task.Quality.Value; - query += string.Format(" -q {0}", value.ToString(CultureInfo.InvariantCulture)); + query += string.Format(" -q {0}", task.Quality.Value.ToString(CultureInfo.InvariantCulture)); break; } break; -- cgit v1.2.3