[Live-devel] invalid ts stream

Ross Finlayson finlayson at live555.com
Fri Dec 23 06:45:45 PST 2011


> This :
>    // Fill in the PES PTS (from our SCR):
>   fInputBuffer[9] = 0x20|(fSCR.highBit<<3)|(fSCR.remainingBits>>29)|0x01;
>   fInputBuffer[10] = fSCR.remainingBits>>22;
>   fInputBuffer[11] = (fSCR.remainingBits>>14)|0x01;
>   fInputBuffer[12] = fSCR.remainingBits>>7;
>   fInputBuffer[13] = (fSCR.remainingBits<<1)|0x01;
>  
> Had to change to this:
>  
> // Fill in the PES PTS (from our SCR):
>   fInputBuffer[9] = 0x30|(fSCR.highBit<<3)|(fSCR.remainingBits>>29)|0x01;
>   fInputBuffer[10] = fSCR.remainingBits>>22;
>   fInputBuffer[11] = (fSCR.remainingBits>>14)|0x01;
>   fInputBuffer[12] = fSCR.remainingBits>>7;
>   fInputBuffer[13] = (fSCR.remainingBits<<1)|0x01;
>  
>     // Fill in the PES DTS (from our SCR):
>   fInputBuffer[14] = 0x10|(fSCR.highBit<<3)|(fSCR.remainingBits>>29)|0x01;
>   fInputBuffer[15] = fSCR.remainingBits>>22;
>   fInputBuffer[16] = (fSCR.remainingBits>>14)|0x01;
>   fInputBuffer[17] = fSCR.remainingBits>>7;
>   fInputBuffer[18] = (fSCR.remainingBits<<1)|0x01;

Was that the only change that you needed to make to our code in order to get your TS file to work?


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/20111223/d819f1f7/attachment-0001.html>


More information about the live-devel mailing list