Bv2.1 8.5: Features must have FFEC/FFMC markers.
[libdcp.git] / tools / dcpdecryptmxf.cc
index b5cf6b9be43659983a0c2eafc97276b93aaeeac3..12cb492cc78b877f704961781770a9a105f8420c 100644 (file)
@@ -50,7 +50,7 @@ using std::string;
 using std::cerr;
 using std::cout;
 using boost::optional;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 static void
 help (string n)
@@ -66,6 +66,8 @@ help (string n)
 int
 main (int argc, char* argv[])
 {
+       dcp::init ();
+
        optional<boost::filesystem::path> output_file;
        optional<boost::filesystem::path> kdm_file;
        optional<boost::filesystem::path> private_key_file;
@@ -141,7 +143,6 @@ main (int argc, char* argv[])
                        in.first_frame(),
                        in.max_channel_count(),
                        in.max_object_count(),
-                       in.atmos_id(),
                        in.atmos_version()
                        );
                shared_ptr<dcp::AtmosAssetWriter> writer = out.start_write (output_file.get());
@@ -149,7 +150,7 @@ main (int argc, char* argv[])
                        shared_ptr<const dcp::AtmosFrame> f = reader->get_frame (i);
                        writer->write (f->data(), f->size());
                }
-       } catch (dcp::DCPReadError& e) {
+       } catch (dcp::ReadError& e) {
                cerr << "Unknown MXF format.\n";
                return EXIT_FAILURE;
        }