freeMXF.org http://freemxf.org/forum/ |
|
Setting the number of bytes in a KLV length field http://freemxf.org/forum/viewtopic.php?f=2&t=163 |
Page 1 of 1 |
Author: | Pardus [ Fri Sep 26, 2008 1:31 pm ] |
Post subject: | Setting the number of bytes in a KLV length field |
Hi again, I've a question concerning the number of bytes used for the length in a KLV triplet. I've been dissecting AVID OP-atom files and noticed that the length field in these files seems to be a fixed 9 bytes: 0x88.xx.xx.xx.xx.xx.xx.xx.xx when creating a new file using mxflib, the default number of bytes seems to be 4, unless the length of the value exceeds 16777216 bytes: 0x83.xx.xx.xx Is there a way (parameter/feature/function) to change this default number of bytes to 9 bytes when creating a new MXFfile? |
Author: | Matt Beard [ Fri Oct 03, 2008 9:53 am ] |
Post subject: | |
Probably the easiest way to make this non-standard behaviour is to modify the MakeBER() function in helper.h to always write 9-byte BER lengths. You could turn this into a user-defined feature if you want. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |