summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/QueryParser.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/Functions/QueryParser.cs')
-rw-r--r--win/C#/Functions/QueryParser.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/win/C#/Functions/QueryParser.cs b/win/C#/Functions/QueryParser.cs
index 68bcac00f..b297ed68e 100644
--- a/win/C#/Functions/QueryParser.cs
+++ b/win/C#/Functions/QueryParser.cs
@@ -256,7 +256,7 @@ namespace Handbrake.Functions
private Boolean q_twoPass;
private string q_videoFramerate;
- private int q_videoQuality;
+ private float q_videoQuality;
private string q_videoTargetSize;
/// <summary>
@@ -334,7 +334,7 @@ namespace Handbrake.Functions
/// <summary>
/// Returns a int with the video quality value
/// </summary>
- public int VideoQuality
+ public float VideoQuality
{
get { return q_videoQuality; }
}
@@ -848,12 +848,11 @@ namespace Handbrake.Functions
if (videoFilesize.Success)
thisQuery.q_videoTargetSize = videoFilesize.ToString().Replace("-S ", "");
- double qConvert;
if (videoQuality.Success)
{
- qConvert = double.Parse(videoQuality.ToString().Replace("-q ", ""), Culture)*100;
- qConvert = Math.Ceiling(qConvert);
- thisQuery.q_videoQuality = int.Parse(qConvert.ToString());
+ float qConvert = float.Parse(videoQuality.ToString().Replace("-q ", ""), Culture);
+ //qConvert = Math.Ceiling(qConvert);
+ thisQuery.q_videoQuality = qConvert;
}
#endregion