[Live-devel] MPEG2TransportStreamIndexer problem

Ross Finlayson finlayson at live555.com
Sat Jun 21 18:05:06 PDT 2014


> I've a question about transport stream indexing with MPEG2TransportStreamIndexer (for media server trick play). 
> It generates a lot of errors: Bad "adaptation_field_length": 183
> 
> Those errors are generated by MPEG2IndexFromTransportStream liveMedia class. Here the code:
> 
> if (totalHeaderSize >= TRANSPORT_PACKET_SIZE) {
>     envir() << "Bad \"adaptation_field_length\": " << fInputBuffer[4] << "\n";
>     doGetNextFrame();
>     return;
> }
> 
> When "adaptation_field_control" field value = 2 (that it means "adaptation field only") the totalHeaderSize is equals to 188 byte.
> 
> E.g. 
> packet header = 4 byte
> adaptation_field_length field = 1 byte  (value = 183)
> adaptation field = 183 byte
> 
> The result = 4 + 1 + 183 = 188. This is the correct value but it generates an error.

Yes, this is a bug (though the code will still work OK, despite printing the bogus 'error' message).

This will be fixed in the next release of the software.  Thanks for the report.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20140621/fbd232b2/attachment.html>


More information about the live-devel mailing list