diff options
author | sr55 <[email protected]> | 2012-05-13 14:34:47 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-05-13 14:34:47 +0000 |
commit | 6a7aa982252348fe7b3cdf981f37bd6677d80006 (patch) | |
tree | c1d299beb4dba30def31942d10ab04fb55ac33a9 /win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs | |
parent | 409ad193e460d14802b85bd814a3b38a3ce8709f (diff) |
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
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs | 13 |
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;
|