[transmageddon/gtk3] Check for 0/0 fraction



commit d1f81ed16348ddff87d00482788e763ee2dc33af
Author: Christian Fredrik Kalager Schaller <christian schaller collabora co uk>
Date:   Tue Jan 17 11:40:10 2012 +0000

    Check for 0/0 fraction

 src/presets.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/presets.py b/src/presets.py
index 3a55a9d..669aaba 100644
--- a/src/presets.py
+++ b/src/presets.py
@@ -330,7 +330,9 @@ def _load_video_codec(root):
         elif child.tag == "height":
             codec.height = _parse_range(child.text.strip())
         elif child.tag == "pixelaspectratio":
-            codec.aspectratio = _parse_range(child.text.strip(), Fraction)
+            aspectratio = child.text.strip()
+            if aspectratio != "0/0":
+                codec.aspectratio = _parse_range(child.text.strip(), Fraction)
         elif child.tag == "framerate":
             codec.rate = _parse_range(child.text.strip(), Fraction)
         elif child.tag == "border":



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]