]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix a second Integer overflow.
authorsr55 <sr55.hb@outlook.com>
Sat, 25 Aug 2012 19:43:58 +0000 (19:43 +0000)
committersr55 <sr55.hb@outlook.com>
Sat, 25 Aug 2012 19:43:58 +0000 (19:43 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4917 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs

index 0c492b138c84223380a5e38cd542906663496fd6..2c879ff5817821fb9cd19665f93b9c218736479a 100644 (file)
@@ -1004,7 +1004,7 @@ namespace HandBrakeWPF.ViewModels
 \r
                         double new_width = ((double)this.Height * this.sourceResolution.Height * this.SourceAspect.Width *\r
                                             crop_width) /\r
-                                           (this.sourceResolution.Width * this.SourceAspect.Height * crop_height);\r
+                                           ((double)this.sourceResolution.Width * this.SourceAspect.Height * crop_height);\r
 \r
                         this.Task.Width = (int)Math.Round(this.GetModulusValue(new_width), 0);\r
                         this.NotifyOfPropertyChange(() => this.Task.Width);\r