<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div><div style="margin-top: 0pt; margin-bottom: 0pt; "><font face="tahoma,sans-serif"><font size="4"><span style="font-family:"Times New Roman"">line 268:</span><span style="font-family:"\005b8b\004f53"">  unsigned remExtSize = 4*(extHdr&0xFFFF);</span><span style="font-family:"\005b8b\004f53""></span></font></font></div><div style="margin-top: 0pt; margin-bottom: 0pt; "><font face="tahoma,sans-serif"><font size="4"><span style="font-family:"\005b8b\004f53"">Pls pay attension to <font color="#ff0000"><strong>line 268.</strong></font> Here you calculated RTP packet extension size with extHdr length directly,</span></font></font></div><div style="margin-top: 0pt; margin-bottom: 0pt; "><font face="tahoma,sans-serif"><font size="4"><span style="font-family:"\005b8b\004f53"">but it should be network bytes order, need to be transfered to host byte order firstly.</span></font></font></div><p style="margin-top:0pt;margin-bottom:0pt" class="p0"><font face="tahoma,sans-serif"><font size="4"><span style="font-family:"\005b8b\004f53""></span><span style="font-family:"\005b8b\004f53""></span></font></font> </p><div style="margin-top: 0pt; margin-bottom: 0pt; "><font face="tahoma,sans-serif"><font size="4"><span style="font-family:"\005b8b\004f53"">E.g:   unsigned remExtSize = 4 * <font color="#ff0000"><strong>ntohs</strong></font>(extHdr & 0xFFFF);</span><span style="font-family:"\005b8b\004f53""></span></font></font></div><p style="margin-top:0pt;margin-bottom:0pt" class="p0"><font face="tahoma,sans-serif"><font size="4"><span style="font-family:"\005b8b\004f53""></span></font></font> </p><div style="margin-top: 0pt; margin-bottom: 0pt; ">
<font face="tahoma,sans-serif"><font size="4"><span style="font-family:"\005b8b\004f53"">How do you think ?</span></font></font></div></div></blockquote><div><br></div>No, because we already converted the data to host byte order when we assigned the "extHdr" field, in the previous line (line 267):</div><div><span class="Apple-tab-span" style="white-space:pre">  unsigned extHdr = ntohl(*(u_int32_t*)(bPacket->data())); ADVANCE(4);</span></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>