<div>Hi,</div>
<div> </div>
<div>I'm new in this group so: hi everyone. </div>
<div> </div>
<div>I'm working on a indexer that will support H.264-in-MPEG-Transport-Stream files. MPEG2IndexFromTransportStream code is clear but i have question:</div>
<div> </div>
<div>MPEG2IndexFromTransportStream.cpp, line 220</div>
<div> </div>
<div> if (payload_unit_start_indicator) {<br> // Note: The following works only for MPEG-2 data #####<br> u_int8_t PES_header_data_length = fInputBuffer[totalHeaderSize+8];<br> //fprintf(stderr, "PES_header_data_length: %d\n", PES_header_data_length);//#####<br>
totalHeaderSize += 9 + PES_header_data_length;</div>
<div> </div>
<div>Question about this '9': Why this is working only with MPEG2 data? This '9' is specific for video coded with mpeg2? This '9' is a header length?</div>
<div> </div>
<div>Thanks for help.</div>
<div> </div>
<div>Best regards,</div>
<div>Chris</div>
<div> </div>