summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
Diffstat (limited to 'win')
-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,