diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-05-11 22:42:32 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-05-12 13:13:36 +0200 |
| commit | 2b870d03ce118f9d9146f53658d3a9a2e2626600 (patch) | |
| tree | 8766a84cb75e7c7e954bfa9b7a4b5c5123cdd6d6 /src/tools | |
| parent | 186654cc20ef302abed1a2ddfa01fc1fa3af81fa (diff) | |
Guess DCP container size and resolution when content is added
or removed such that there is one piece of video content left
in the project.
Container size and resolution are never again guessed once the
user has set them to something.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic_create.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tools/dcpomatic_create.cc b/src/tools/dcpomatic_create.cc index bcfc2f68b..857359117 100644 --- a/src/tools/dcpomatic_create.cc +++ b/src/tools/dcpomatic_create.cc @@ -96,14 +96,18 @@ main (int argc, char* argv[]) } film->set_name (cc.name); - film->set_container (cc.container_ratio); + if (cc.container_ratio) { + film->set_container (cc.container_ratio); + } film->set_dcp_content_type (cc.dcp_content_type); film->set_interop (cc.standard == dcp::INTEROP); film->set_use_isdcf_name (!cc.no_use_isdcf_name); film->set_signed (!cc.no_sign); film->set_encrypted (cc.encrypt); film->set_three_d (cc.threed); - film->set_resolution (cc.fourk ? RESOLUTION_4K : RESOLUTION_2K); + if (cc.fourk) { + film->set_resolution (RESOLUTION_4K); + } if (cc.j2k_bandwidth) { film->set_j2k_bandwidth (*cc.j2k_bandwidth); } |
