summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-06-19 13:12:12 +0200
committerCarl Hetherington <cth@carlh.net>2020-06-19 13:15:34 +0200
commit15ab79d455b27fc4af39e9a84d8ba0ccc6c2fb4a (patch)
treee406ac5c668e14c958547c7aa2d376c167ab2c58 /src
parent67350935c720d9c3777ae317cb31a7cee61364ee (diff)
Missing set up of AtmosVersion when writing Atmos assets.
Diffstat (limited to 'src')
-rw-r--r--src/atmos_asset_writer.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/atmos_asset_writer.cc b/src/atmos_asset_writer.cc
index 1634010c..656026b4 100644
--- a/src/atmos_asset_writer.cc
+++ b/src/atmos_asset_writer.cc
@@ -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());
}