-
Notifications
You must be signed in to change notification settings - Fork 54
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
Fix IABEssenceClipWrappedElement key #64
Conversation
@@ -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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closes #59