From 3ffd0163026be24e5373e0674c3301ed37546e44 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 21 Feb 2024 10:47:38 +0100 Subject: Make DCPExaminer::size() optional and deal with the consequences. This means we can fix the case of a VF having no known size in a nice way, in turn fixing problems caused by the fix to #2775. --- src/lib/hints.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/hints.cc') diff --git a/src/lib/hints.cc b/src/lib/hints.cc index 7537317d4..bbd5ae5d5 100644 --- a/src/lib/hints.cc +++ b/src/lib/hints.cc @@ -128,8 +128,8 @@ Hints::check_incorrect_container () int narrower_than_scope = 0; int scope = 0; for (auto i: film()->content()) { - if (i->video) { - auto const r = Ratio::nearest_from_ratio(i->video->scaled_size(film()->frame_size()).ratio()); + if (i->video && i->video->size()) { + auto 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() != "235" && r->id() != "190") { -- cgit v1.2.3