[vlc-devel] [PATCH 1/5] mp4: prhd, equi, cbmp and st3d boxes have a flag parameter

Francois Cartegnie fcvlcdev at free.fr
Mon Dec 5 11:24:26 CET 2016


Le 05/12/2016 à 11:19, Adrien Maglo a écrit :
>>
>> Is there any reason for declaring the /data-members/ as |int32_t|,
>> instead of |uint32_t|?
> 
> No, good point. I misread the spec.

That's not even a question of sign.

You have both flags and version in those 4 bytes.

You just need to check version and flags, if meaningful, according to
the spec, before decoding. There's no need to store it.

Francois



More information about the vlc-devel mailing list