Re: Several (minor) issues or underspecified areas in the MKV spec

Moritz Bunkus <[email protected]> Fri, 20 Nov 2015 19:56:27 +0100
Newsgroups gmane.comp.multimedia.matroska.devel
Message-ID <[email protected]>
Hey,

> How should mandatory master elements be handled if they are not
> present in the bitstream?

The Matroska spec notes[1] deal with this explicitly. Quote:

"If the upper element is not present or assumed, then the element cannot
be assumed."

So…

> Consider, for example, the ContentEncoding element. It's mandatory,
> and its children have appropriate default values such that a
> ContentEncoding element of zero size is perfectly fine. Now, taking
> things a step further, could this ContentEncoding element be
> completely removed from the bitstream? Or is it required to be present
> in the bitstream?

If it is absent then all of its children must be assumed to be absent as
well. And that's how today's parsers work, too.

Therefore EBML should specify it the same way.

Kind regards,
mosu

[1]  http://www.matroska.org/technical/specs/notes.html

_______________________________________________
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
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAABCAAGBQJWT2zbAAoJEHSvAK3y4yyFhnsP/jvA5tPTe2qBvzqvnHx0SHHJ
+Bqg+VNe28bpqzyzZjrhvRdjBppceYDKB2IGV4NKpUHnNFepbNckB+AjMpljkcJt
LHFhcYl9qYJOXdEfwyRH4PBw6DZzBskDJpAJ9oKxW9/uoJIGt7xH7021NsQzkkxe
0XeSG/uTpG4D7gSya5xX1oIFyKq5r+jPjLTkvr5bnNqhtwfnmEYPsFsARfiL23A+
Ru90ceFwxdA8V+ywNMiMp482I9aB85gWfMseTKA6t2UErk5sePlyh2dI4xm9V5o7
XgXMADTd9gn1bTb8yvrJ9gUMousKVuIDeWIYEJDL4i4vYoUPSyd+Eh3NR/BDf3Qg
6Cs0Jja6mxLzgADgkMWHpJbrrxdeN+RPw2OeCtCHHwvimSd+oklUA06FK6mLgoK/
Y1BpTVk/Y1Pk/QHqu7lrvtW7X5L2XjWJySo6eooHtupmKX/mNzoDtKmCTmaxSpXK
c6RviN0lUGObLgg8o+8NXkIkeikaihjcYCarWdRWqYeO8RyDrQcnXTHp7lvcICgx
6LfrI3eK/Uc06Vn5oWRGQ5embTmOwgqJ2UCmNUnFSv0OGf8qqFi2SLbp7DGNZpRX
ua43lrzTJchgSxzFLGwo3+9+RZdkWJngyIDSMSRwTgHeHt2Pp7XvdqoXWgu88z59
Qyi4kDBQeNIaFFEmjPrI
=LNPd
-----END PGP SIGNATURE-----