summaryrefslogtreecommitdiff
path: root/src/AS_DCP_JXS.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2021-06-10 21:01:41 -0700
committerjhurst <jhurst@cinecert.com>2021-06-10 21:01:41 -0700
commit083716712bb2e4e59b229fdaa238d5f44d72d4a6 (patch)
treef93d226c06ad5a9fd1fc8730e2a0293502ace7ed /src/AS_DCP_JXS.cpp
parent8380aef198b34a020e0bc76dcf4b5e97c27da553 (diff)
removed duplicate object create
Diffstat (limited to 'src/AS_DCP_JXS.cpp')
-rw-r--r--src/AS_DCP_JXS.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/AS_DCP_JXS.cpp b/src/AS_DCP_JXS.cpp
index cad09e6..5fec863 100644
--- a/src/AS_DCP_JXS.cpp
+++ b/src/AS_DCP_JXS.cpp
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2004-2016, John Hurst,
+Copyright (c) 2004-2021, John Hurst,
Copyright (c) 2020, Thomas Richter Fraunhofer IIS
All rights reserved.
@@ -499,15 +499,11 @@ ih__Writer::SetSourceStream(
return RESULT_PARAM;
}
- assert(m_Dict);
-
- m_EssenceDescriptor = new ASDCP::MXF::GenericPictureEssenceDescriptor(m_Dict);
- m_EssenceDescriptor->Copy(picture_descriptor);
assert(m_EssenceDescriptor);
+ m_EssenceDescriptor->Copy(picture_descriptor);
- m_EssenceSubDescriptor = new ASDCP::MXF::JPEGXSPictureSubDescriptor(m_Dict);
- m_EssenceSubDescriptor->Copy(jxs_sub_descriptor);
assert(m_EssenceSubDescriptor);
+ m_EssenceSubDescriptor->Copy(jxs_sub_descriptor);
memcpy(m_EssenceUL, m_Dict->ul(MDD_JPEGXSEssence), SMPTE_UL_LENGTH);
m_EssenceUL[SMPTE_UL_LENGTH-1] = 1; // first (and only) essence container