[Matroska-devel] EBML improvements

Steve Lhomme steve.lhomme at free.fr
Mon Aug 30 13:44:38 CEST 2004


Steve Lhomme a écrit :

> Moritz Bunkus a écrit :
> 
>> Hi,
>>
>>
>>> The specs clearly say that the size is always between 0 and something.
>>
>>
>>
>> :)
>>
>> Ok that would work. Of course it "only" saves one byte compared to an
>> UInteger, but that's of course better than nothing ;) Especially for
>> cases in which flags are used often.
> 
> 
> Well, after talking on IRC, it seems that the size=0 should be 
> generalized. It would mean that the element has the default value. 
> Otherwise some elements that are not mandatory should never have a 
> default value.
> 
> And that change (addition, actually) would make a new EbmlFlag type 
> useless.

Mh, this guy (me) is telling bullshit.

Actually what I proposed for flags was the opposite. If you don't put 
data it's the _opposite_ of the default value. So the change should be 
one _or_ the other. It think that it's better to go the general way (ie 
not adding an EbmlFlag).



More information about the Matroska-devel mailing list