<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>To use the example data that you used in your last email, this means that the data that you should copy to *fTo should be</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>09 10 00 00 00 01 67 42 C0 1F F4 02 00 30 D8 08 80 00 01 F4 ...</div></div></blockquote><div><br></div>Oops, it turns out that this wasn't correct. The "00 00 00 01" in the data is the 'start code', that we shouldn't be including.</div><div><br></div><div>In this example, the first NAL unit is just two bytes long:</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>09 10</div><div>(FYI, it's an "access unit delimiter" NAL unit)</div><div><br></div><div>That's ALL that you you should be copying to *fTo at first.</div><div><br></div><div>The second NAL unit is 0x20 (i.e., 32) bytes long, and begins</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>67 42 C0 1F F4 02 00 30 D8 08 80 00 01 F4 80 00 75 30 70 00 00 0B ...</div><div>(FYI, it's a "sequence parameter set" (i.e., SPS) NAL unit)</div><div><br></div><div>It's important that you copy only one NAL unit at a time (and, of course, set "fFrameSize" correctly for each).</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; font-size: medium; "><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; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>