Adapt for libdcp use of enum class.
[dcpomatic.git] / src / lib / create_cli.cc
index aec12e59edbc6d0668082796a824a8aa93766f5e..de26a7412355919b1f97c6085f3a44b51f8e2a74 100644 (file)
@@ -79,7 +79,7 @@ CreateCLI::CreateCLI (int argc, char* argv[])
        , dcp_content_type (0)
        , container_ratio (0)
        , still_length (10)
-       , standard (dcp::SMPTE)
+       , standard (dcp::Standard::SMPTE)
        , no_use_isdcf_name (false)
        , fourk (false)
 {
@@ -191,6 +191,10 @@ CreateCLI::CreateCLI (int argc, char* argv[])
                return;
        }
 
+       if (standard_string == "interop") {
+               standard = dcp::Standard::INTEROP;
+       }
+
        if (content.empty()) {
                error = String::compose("%1: no content specified", argv[0]);
                return;