[Live-devel] PES Packet length problem

Jeremy jeremy at electrosilk.net
Fri Sep 8 03:24:30 PDT 2006


Hello

In function InputESSourceRecord::deliverBufferToClient() there is the
following code

unsigned PES_packet_length = fInputBufferBytesAvailable - 6;
fInputBuffer[4] = PES_packet_length>>8;
fInputBuffer[5] = PES_packet_length;

In the case that PES_packet_length exceeds 65536 the packet length will
be recorded incorrectly.
It is quite possible within the existing framework to exceed a value of
65536 (as I found out).

What is the correct fix for this situation? Should an error be issued?
Or should the data be split into smaller components? If the latter, what
presentation time stamp should be used.

Thanks

Jeremy



More information about the live-devel mailing list