diff options
Diffstat (limited to 'win/C#/Controls')
-rw-r--r-- | win/C#/Controls/PictureSettings.cs | 2 |
1 files changed, 2 insertions, 0 deletions
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:
|