diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-04-11 00:54:13 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-04-11 20:31:45 +0200 |
| commit | e1aac965a70ad8f50716325ef31a1829161dc6d3 (patch) | |
| tree | 479f6b6a873aef239fa2cd2924839e973dbedd2a /src/tools | |
| parent | 87354b0a1d1f9ad48202f13e3bc2c6c3937b8a81 (diff) | |
Give an error if a non-number is passed to dcpomatic2_create -s (#2488).
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic_create.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_create.cc b/src/tools/dcpomatic_create.cc index bd059e9f8..caaba6b38 100644 --- a/src/tools/dcpomatic_create.cc +++ b/src/tools/dcpomatic_create.cc @@ -184,7 +184,7 @@ main (int argc, char* argv[]) for (auto i: film->content()) { auto ic = dynamic_pointer_cast<ImageContent> (i); if (ic && ic->still()) { - ic->video->set_length (cc.still_length * 24); + ic->video->set_length(cc.still_length.get_value_or(10) * 24); } } |
