summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sound_asset_writer.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sound_asset_writer.cc b/src/sound_asset_writer.cc
index 49170990..9ec93924 100644
--- a/src/sound_asset_writer.cc
+++ b/src/sound_asset_writer.cc
@@ -209,8 +209,7 @@ LIBDCP_ENABLE_WARNINGS
/* Remove duplicates */
std::sort(dcp_channels.begin(), dcp_channels.end());
- auto last = std::unique(dcp_channels.begin(), dcp_channels.end());
- dcp_channels.erase(last, dcp_channels.end());
+ dcp_channels.erase(std::unique(dcp_channels.begin(), dcp_channels.end()), dcp_channels.end());
for (auto dcp_channel: dcp_channels) {
auto channel = new ASDCP::MXF::AudioChannelLabelSubDescriptor(asdcp_smpte_dict);