From 15a83d720780d58f905d40f8493cdcb86596eaee Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 10 May 2020 01:57:20 +0200 Subject: Change video content scaling so that it either: 1. scales the content up to fit the DCP container, preserving aspect ratio, or 2. stretches the content to a custom aspect ratio, or 3. scales the content to some custom size. --- src/lib/hints.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/hints.cc') diff --git a/src/lib/hints.cc b/src/lib/hints.cc index 581d63972..0f18835ef 100644 --- a/src/lib/hints.cc +++ b/src/lib/hints.cc @@ -123,7 +123,7 @@ Hints::thread () int scope = 0; BOOST_FOREACH (shared_ptr 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") { -- cgit v1.2.3