diff options
| author | jhurst <jhurst@cinecert.com> | 2021-06-10 21:01:41 -0700 |
|---|---|---|
| committer | jhurst <jhurst@cinecert.com> | 2021-06-10 21:01:41 -0700 |
| commit | 083716712bb2e4e59b229fdaa238d5f44d72d4a6 (patch) | |
| tree | f93d226c06ad5a9fd1fc8730e2a0293502ace7ed /src/AS_DCP_JXS.cpp | |
| parent | 8380aef198b34a020e0bc76dcf4b5e97c27da553 (diff) | |
removed duplicate object create
Diffstat (limited to 'src/AS_DCP_JXS.cpp')
| -rw-r--r-- | src/AS_DCP_JXS.cpp | 10 |
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 |
