Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IABEssenceClipWrappedElement key #64

Merged

Conversation

palemieux
Copy link
Contributor

Closes #59

@@ -179,7 +183,7 @@ AS_02::IAB::MXFWriter::OpenWrite(

byte_t clip_buffer[RESERVED_KL_SIZE] = { 0 };

memcpy(clip_buffer, this->m_Writer->m_Dict->ul(MDD_IMF_IABEssenceClipWrappedElement), ASDCP::SMPTE_UL_LENGTH);
memcpy(clip_buffer, element_ul_bytes, ASDCP::SMPTE_UL_LENGTH);
Copy link

@kblinova kblinova Aug 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not define MDD_IMF_IABEssenceClipWrappedElement to include 01 and 01 in places of 7f and 7f? This Essence UL is defined to be in the context of OP1 header. What flexibility does defining this UL as 7f and 7f add?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What flexibility does defining this UL as 7f and 7f add?

The UL matches the SMPTE registers exactly.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of things:

  • It would be good to have a way to set these bytes in ULs in a systematic way instead of using array subscripts; That makes is a supported library functionality
  • There will be an issue comparing the UL found in the MXF files back with the MDD table definitions. This happens in as-02-info and klv-walk where the ULs are turned into printable strings for human consumption.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following this expedient pull request I would appreciate a contribution that better addresses the 7f placeholder issues. What constitutes "better" is not yet obvious to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@palemieux palemieux added the bug Something isn't working label Aug 31, 2020
@jhursty jhursty merged commit a4821b7 into cinecert:master Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IMF_IABEssenceClipWrappedElement UL value is incorrect in written IMF MXF files.
3 participants