Re: EBML data type constraints

wm4 <[email protected]>
Newsgroups gmane.comp.multimedia.matroska.devel
Message-ID <20150623153008.085e6e25@miuna>
On Mon, 22 Jun 2015 16:44:27 -0400
Dave Rice <[email protected]> wrote:

> Hi all,
> Some of these have already been discussed but I want to verify these questions as I'm working on improvement the section of the spec that defines EBML Element Types (Data Types).
> 
> The EBML spec at http://matroska-org.github.io/libebml/specs.html <http://matroska-org.github.io/libebml/specs.html> says: "Signed Integer - Big-endian, any size from 1 to 8 octets" The RFC Draft at http://matroska.org/technical/specs/rfc/index.html <http://matroska.org/technical/specs/rfc/index.html> says: "Signed integer, represented in two's complement notation, sizes from 0-8 bytes."
> 
> Is a 0 sized (un)signed integer allowed?

I'd vote no. Didn't we discuss this already and concluded they're not
allowed? But maybe I don't remember correctly.

> Additionally, the EBML spec says that Floats may be either 4 or 8 bytes, while the RFC Draft says 0, 4, 8, or 10. Are 0 or 10 byte length floats allowed?

I'd vote to definitely forbid floats of size 0 and 10.

> The RFC Draft says that a "string can be zero length" while the EBML spec doesn't say. Is a 0 sized string element allowed?

Aren't 0 size strings just empty strings? Should definitely be allowed.
_______________________________________________
Matroska-devel mailing list
[email protected]
http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel
Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.