From 20507852c810ab87d8bf7fb86d75abe682934ab2 Mon Sep 17 00:00:00 2001 From: sr55 Date: Thu, 12 Feb 2009 21:42:59 +0000 Subject: 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 --- win/C#/frmMain/PresetLoader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'win/C#/frmMain/PresetLoader.cs') 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); -- cgit v1.2.3