<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">No, this is still all wrong. First, it (once again) works for only one subclass of "MPEG2TransportStreamMultiplexor" (and, in particular, doesn't work for "MPEG2TransportStreamFromPESSource" at all).<div><br></div><div>But it turns out that there's a more fundamental problem: This won't work if more than one stream is being multiplexed concurrently into a "MPEG2TransportStreamMultiplexor". "fCurrentPID" can't be a single variable, assigned just once. It has to be assigned each time that the multiplexor receives a new 'input packet'. Note that the 'input packets' are PES packets, whose headers contain only 'stream ids', not PIDs. That's why we just reuse the 'stream id' as the PID.</div><div><br></div><div>So I'm not going to be changing the existing code. You're going to have to live with the generated Transport Stream's PIDs being the same as the 'stream ids', just like everyone else. (Nobody really needs to change these PIDs anyway.)</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>