[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does MPE handle the last byte?



rq inside,

Patrick Cipiere wrote:
So, if I understand this, it means:

The receiver stops processing the MPEG-2 TS Packet
Payload after it has processed the end of the MPE Section, when there is no PUSI set.
That is, it will silently discard the last (unused)
byte in the example below?

Both points are also my understanding.



Yes, and - the unused byte(s) have to be filled with 0xff
- the next pointer_field has to be 0x00
From ISO/IEC 13818-1
--------------------

Adaptation fields may occur in Transport Stream packets carrying PSI
sections.

Within a Transport Stream, packet stuffing bytes of value 0xFF may be
found in the payload of Transport Stream packets carrying PSI and/or
private_sections only after the last byte of a section. In this case
all bytes until the end of the Transport Stream packet shall also be
stuffing bytes of value 0xFF. These bytes may be discarded by a
        ^^^^^^^^^^^^^^^^^^^^^^^^

To keep in sync whith what is done in the DVB world, maybe the
ULE-method should force padding & stuffing to be done also with 0xff,
(as in the ENC-Method).

To have it simple, maybe then, in the ULE, the end-indicator should
be set to 0xffff (instead of 0x0000), which of course would forbid SNDU
with such a length field, but is it a big deal ?

Regards
Alain.
--
Alain RITOUX
Tel +33-1-39-30-92-32
Fax +33-1-39-30-92-11
visit our web http://www.6wind.com