diff options
Diffstat (limited to 'win/C#/frmMain/PresetLoader.cs')
-rw-r--r-- | win/C#/frmMain/PresetLoader.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/C#/frmMain/PresetLoader.cs b/win/C#/frmMain/PresetLoader.cs index 7064b0c68..ed5dccdcb 100644 --- a/win/C#/frmMain/PresetLoader.cs +++ b/win/C#/frmMain/PresetLoader.cs @@ -191,10 +191,10 @@ namespace Handbrake calculated = presetValue / x264step;
calculated = x - calculated;
- //TODO: Handle cases where it can't parse a value due to the float being too lage.
- // when used with .33 and .2 and 1.0 for example.
int.TryParse(calculated.ToString(), out value);
+ // This will sometimes occur when the preset was generated
+ // with a different granularity, so, round and try again.
if (value == 0)
{
double val = Math.Round(calculated, 0);
|