<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000"><pre wrap="">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.
</pre></div></blockquote><div><br></div>Yes, this is a bug (though the code will still work OK, despite printing the bogus 'error' message).</div><div><br></div><div>This will be fixed in the next release of the software.  Thanks for the report.</div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>