Change video content scaling so that it either:
[dcpomatic.git] / src / lib / hints.cc
index 581d63972a1cac97b0c257243b0482a1fded12f5..0f18835ef47887a8171eba059ae2b5e8032a1877 100644 (file)
@@ -123,7 +123,7 @@ Hints::thread ()
        int scope = 0;
        BOOST_FOREACH (shared_ptr<const Content> i, content) {
                if (i->video) {
-                       Ratio const * r = i->video->scale().ratio ();
+                       Ratio const * r = Ratio::nearest_from_ratio(i->video->scaled_size(film->frame_size()).ratio());
                        if (r && r->id() == "239") {
                                ++scope;
                        } else if (r && r->id() != "239" && r->id() != "190") {