summaryrefslogtreecommitdiffstats
path: root/win/C#
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-09-12 21:21:07 +0000
committersr55 <[email protected]>2009-09-12 21:21:07 +0000
commit381e01c88a65395f12c0539a5303ef15cb323df1 (patch)
tree34b6c8240eb7641bf10dcde368329cd3816c3b72 /win/C#
parent94d44646aeb23b42bb5596941e0534c7896fa61e (diff)
WinGui:
- Fix an issue in QueryParser related to pixelAspectHeight and pixelAspectWidth values not set correctly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2816 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#')
-rw-r--r--win/C#/Functions/QueryParser.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/C#/Functions/QueryParser.cs b/win/C#/Functions/QueryParser.cs
index 87fdfc02d..7230ad993 100644
--- a/win/C#/Functions/QueryParser.cs
+++ b/win/C#/Functions/QueryParser.cs
@@ -240,10 +240,10 @@ namespace Handbrake.Functions
thisQuery.displayWidthValue = double.Parse(displayWidth.Groups[0].Value.Replace("--display-width ", ""));
if (pixelAspect.Success)
- thisQuery.pixelAspectWidth = int.Parse(pixelAspect.Groups[0].Value.Replace("--pixel-aspect ", ""));
+ thisQuery.pixelAspectWidth = int.Parse(pixelAspect.Groups[1].Value.Replace("--pixel-aspect ", ""));
- if (pixelAspect.Success)
- thisQuery.pixelAspectHeight = int.Parse(pixelAspect.Groups[1].Value.Replace("--pixel-aspect ", ""));
+ if (pixelAspect.Success && pixelAspect.Groups.Count >=3)
+ thisQuery.pixelAspectHeight = int.Parse(pixelAspect.Groups[2].Value.Replace("--pixel-aspect ", ""));
if (modulus.Success)
thisQuery.AnamorphicModulus = int.Parse(modulus.Groups[0].Value.Replace("--modulus ", ""));