
Hi Måns Rullgård wrote:
[...]
Actually, some NALs (PPS, SPS ?) can start with 00 00 01 IIRC.
Actually, it's the opposite. Quote from the spec:
When any of the following conditions are fulfilled, the zero_byte syntax element shall be present.
- the nal_unit_type within the nal_unit( ) is equal to 7 (sequence parameter set) or 8 (picture parameter set) - the byte stream NAL unit syntax structure contains the first NAL unit of an access unit in decoding order, as specified by subclause 7.4.1.2.3.
Ah thanks. That is indeed simpler than putting the NAL size ;) -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA SMARTJOG S.A. http://www.smartjog.com Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA Phone: +33 1 49966312