Fix colour range in XYZ -> RGBA.
[libdcp.git] / src / reel_picture_asset.cc
index ccb4bd5672b1397b5760322b05c87eb544e5fa9d..096d3476d08608acfcbf4b4982d8ea41263426bc 100644 (file)
@@ -60,13 +60,13 @@ ReelPictureAsset::ReelPictureAsset (shared_ptr<const cxml::Node> node)
        try {
                _screen_aspect_ratio = Fraction (node->string_child ("ScreenAspectRatio"));
        } catch (XMLError& e) {
-               /* Maybe it's not a fraction */
-       }
-       try {
-               float f = node->number_child<float> ("ScreenAspectRatio");
-               _screen_aspect_ratio = Fraction (f * 1000, 1000);
-       } catch (bad_cast& e) {
+               /* It's not a fraction */
+               try {
+                       float f = node->number_child<float> ("ScreenAspectRatio");
+                       _screen_aspect_ratio = Fraction (f * 1000, 1000);
+               } catch (bad_cast& e) {
 
+               }
        }
 }