From 108fc8c802b2d1dd55a6f5138bf06a1f4182cf78 Mon Sep 17 00:00:00 2001 From: sr55 Date: Tue, 29 Sep 2009 18:30:38 +0000 Subject: [PATCH] WinGui: - Fix a strange exception error is high profile preset is selected before the first scan. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2849 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Controls/PictureSettings.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs index 70273cc64..bf43b6465 100644 --- a/win/C#/Controls/PictureSettings.cs +++ b/win/C#/Controls/PictureSettings.cs @@ -453,6 +453,8 @@ namespace Handbrake.Controls double pixel_aspect_height = width; double disWidthLoose = (width * pixel_aspect_width / pixel_aspect_height); + if (double.IsNaN(disWidthLoose)) + disWidthLoose = 0; return new Size((int)disWidthLoose, (int)height); case 3: -- 2.40.0