Re: Question about mandatory entries

Moritz Bunkus via Matroska-users <[email protected]> Mon, 14 Mar 2016 09:10:36 +0100
Newsgroups gmane.comp.multimedia.matroska.user
Message-ID <[email protected]>
Hey,

> Mortiz and/or Steve can probably give more insight or could explain it
> more detailed. (And correct me if I said anything wrong)

You were 100% correct. The reason for having default values in general
was twofold:

1. It makes files smaller. For header elements this doesn't matter much
   as there at most a handful of occurrences, but for elements that
   occur frequently (e.g. BlockDuration, ReferencePriority) this does
   matter.

2. It allows extension of the container format in later revisions
   without breaking backwards compatibility. When you introduce a new
   element that's really important you can make it mandatory and give it
   a default value of 0 (for integers, "" for strings etc) with a
   semantic that equals the handling before the element was introduced.

Kind regards,
mosu

_______________________________________________
Matroska-users mailing list
[email protected]
http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-users
Read Matroska-Users on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.user
signature.asc (application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE-----

iQIcBAABCgAGBQJW5nH2AAoJEHSvAK3y4yyFiCkP/RwP4cGLSHzKllDnzorNDLIf
ZZ3tL6ObUOCZtzJAnZ6w66nHPaS/9TplfbBlkyOVJndQkFYZIsvohZKsJn3M399x
d7vBVyyx2Up5THRLBtAu4Ds5gzIGo6kIjo75rBbll+m1zocrmWpuwlAJUVcTj9p/
JURcHgHYFgh0gItEeMoA4l3fBExmbQZ6bKFa+zH/PQyIa7/XePVkbgzJmBAN095B
9FDLRdGhm1Diejk4iUwPo7FSbI2VYAGgiNyESWhTGE+4xH8wsYYnJ0sFiyOvaAV0
tmZSzprh9zGNlY6m5Mq0J9hlSEjSSj35wBytSDxCOQ5samRwOS5HYR9bHEfeReQx
fKQpCCRUYCLafFVkd6gy1zW3PUBqKoY4t30sV07WUZ/8BBCkohIjCwkue4mmzRFT
EZoBL6cH2LBsXcGb/Bic3rRuy/jes/18z/ITCB1Z9hk4dLSBCFx6+9t/yDOQ2uTg
MX9AlHrrSo8Ve7jUavD9LxLcg2QiXYOsx27sVr96O/wl+zN5ta0WOeJmB1+mMccR
5yMEZqg60w6yDKzlSqcClU9qbJaBLa+0Ruiv2lkOCqDniqYv+awuK/yhf/75m2dw
4oNjOpMfJ19g+AiT++4VA7+5n5RMVjydgJWvigcI0N9601dfM6SjXuMSU5A3Ghid
6lR1hyl2wiqW4BwaIA6m
=G8zl
-----END PGP SIGNATURE-----