Missing set up of AtmosVersion when writing Atmos assets.
authorCarl Hetherington <cth@carlh.net>
Fri, 19 Jun 2020 11:12:12 +0000 (13:12 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 19 Jun 2020 11:15:34 +0000 (13:15 +0200)
src/atmos_asset_writer.cc

index 1634010cc547f11a4f602b398789e2bc1f776f6a..656026b4fbbea4214dd2478fb2db8452357fe663 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2016-2020 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
@@ -41,6 +41,7 @@
 
 using std::min;
 using std::max;
+using boost::shared_ptr;
 using namespace dcp;
 
 struct AtmosAssetWriter::ASDCPState
@@ -65,7 +66,7 @@ AtmosAssetWriter::AtmosAssetWriter (AtmosAsset* asset, boost::filesystem::path f
        Kumu::hex2bin (_asset->atmos_id().c_str(), _state->desc.AtmosID, ASDCP::UUIDlen, &c);
        DCP_ASSERT (c == ASDCP::UUIDlen);
 
-       _state->desc.AtmosVersion = 0;
+       _state->desc.AtmosVersion = _asset->atmos_version ();
 
        _asset->fill_writer_info (&_state->writer_info, _asset->id());
 }