diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-22 01:25:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-02-22 01:25:03 +0100 |
| commit | a45f6245e8cc785fab436c9282fa3d1baf3a8575 (patch) | |
| tree | c6ae82be2319446c35ebad6666f68dbb109f8904 /src/lib/hints.cc | |
| parent | 6c3ded5baac385d95ec2cf5e625c6c796c23e318 (diff) | |
| parent | 3ffd0163026be24e5373e0674c3301ed37546e44 (diff) | |
Merge tag 'v2.16.78' into v2.17.xv2.17.12
Diffstat (limited to 'src/lib/hints.cc')
| -rw-r--r-- | src/lib/hints.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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") { |
