summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2014-12-20 13:18:45 +0000
committersr55 <[email protected]>2014-12-20 13:18:45 +0000
commit494eb256cb625a1620786f32d0e41c904ecf0cbf (patch)
treed73dab087614d7ebca78725d9c91c4eba45e47b1
parent5b28087941896fe23c3c66774e246a78f714781f (diff)
WinGui: QuickFix for a crash, will resolve properly later.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6620 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs
index b2d20af0a..95590c71b 100644
--- a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs
+++ b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs
@@ -1871,7 +1871,7 @@ namespace HandBrake.Interop
Left = title.crop[2],
Right = title.crop[3]
},
- AspectRatio = Math.Round((decimal)title.container_dar.num / title.container_dar.den, 2),
+ AspectRatio = title.container_dar.den != 0 ? Math.Round((decimal)title.container_dar.num / title.container_dar.den, 2) : 1.0m, // TODO FIx
AngleCount = title.angle_count,
VideoCodecName = title.video_codec_name,
Framerate = ((double)title.vrate.num) / title.vrate.den,