[Matroska-devel] EBML data type constraints

Dave Rice dave at dericed.com
Thu Jul 2 15:39:31 CEST 2015

> On Jul 2, 2015, at 9:21 AM, wm4 <nfxjfg at googlemail.com> wrote:
> On Thu, 2 Jul 2015 14:49:45 +0200
> Moritz Bunkus <moritz at bunkus.org> wrote:
>> Hey,
>>> On Thu, 02 Jul 2015 14:37:38 +0200
>>> I agree. Though I'd lobby that strings with zero bytes are also
>>> discouraged this way.
>>> Maybe calling them "deprecated" is the right wording?
>> No, empty strings must remain possible, especially for a general purpose
>> base format for containers (don't think of Matroska!). The situation is
>> different than the one for integers. You can express »empty« for an
>> integer with a one-byte value part, but you can only do the equivalent
>> for a string with a string of 0 bytes length. We must allow it.
> I wasn't talking about length 0 strings, but strings with '\0' bytes in
> them. (Another case we've talked about.)

So for this, how about?

Though it is not recommended, String Elements may be terminated with one of many null octets (0b00000000).


More information about the Matroska-devel mailing list