The following claims that BER Lengths must be 4 bytes or longer, but I cannot find any such evidence in the IMF or DCP specifications.
|
if ( ber_size < MXF_BER_LENGTH ) |
ST 377-1 recommends that MXF encoders should use 4-byte BER long-form encoding for the Length of all Header Metadata Sets, but does not impose a requirement on shorter lengths.
Recommend:
- at the very least clarify the comment in the code to state this is an ASCDPLib limitation, not a spec limitation
- consider removing this limitation
- consider amending the appropriate IMF and DCP standards to note that BER lengths that are 3-bytes or less might cause compatibility issues