summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs13
1 files changed, 4 insertions, 9 deletions
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<double>(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;