summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain/PresetLoader.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-02-12 21:42:59 +0000
committersr55 <[email protected]>2009-02-12 21:42:59 +0000
commit20507852c810ab87d8bf7fb86d75abe682934ab2 (patch)
tree52d792b0c75d4976cfd6060cfb311d7ed2ae7f24 /win/C#/frmMain/PresetLoader.cs
parent40adbd9c9ea191a7ae69dd93822090c4616855ee (diff)
WinGui:
- PSY Rate Distortion, PSY Trellis, Adaptive B-Frames added to the advanced tab. - Advanced tag re-arranged to match the macgui. Entire GUI window enlarged to make room for new widgets. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2152 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain/PresetLoader.cs')
-rw-r--r--win/C#/frmMain/PresetLoader.cs4
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);