Give an error if a non-number is passed to dcpomatic2_create -s (#2488).
[dcpomatic.git] / src / tools / dcpomatic_create.cc
index bd059e9f8e68a0c6d2250bf30fc5f40fb079ed72..caaba6b3808ba90b8a0ab7ad49633828b8e5459e 100644 (file)
@@ -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);
                        }
                }