ietf-wg-cellar / ebml-specification

the specification for the EBML format
Creative Commons Attribution 4.0 International
70 stars 24 forks source link

add minver/maxver attributes to enum values #406

Open robUx4 opened 3 years ago

robUx4 commented 3 years ago

This allows adding new enum values without forcing old readers to support them.

The explanation is copied from the minver attribute of "element"

This is necessary (IMO) to add new values like zstd compression

robUx4 commented 3 years ago

Actually the default value should not be 1 but the minver value of the element...

hubblec4 commented 3 years ago

Thats the same thing with the element attribute "minver" and "maxver"

What is when this enum is removed in the next ebml-version... and what is when this enum returns in a next next version?

robUx4 commented 3 years ago

Indeed, there's no reason to have one and not the other. I added both.

hubblec4 commented 3 years ago

@robUx4 can you change the title to "add a minver and a maxver attribute to enum values"