Optimise checking of existing image data.
[dcpomatic.git] / src / lib / video_content_scale.cc
index c8c29536117c83fc1e89db36c20cdbada8caf559..aae135311c9a23375ff6a16cdfde28c219799549 100644 (file)
@@ -155,8 +155,8 @@ VideoContentScale::size (shared_ptr<const VideoContent> c, dcp::Size display_con
                        float (display_container.height) / film_container.height
                        );
 
-               size.width = rint (size.width * scale);
-               size.height = rint (size.height * scale);
+               size.width = lrintf (size.width * scale);
+               size.height = lrintf (size.height * scale);
        }
 
        return size;