<p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4; color: #000000;">Code-Review -1</span></p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11315">View Change</a></p><p>5 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/11315/1/res/res_rtp_asterisk.c">File res/res_rtp_asterisk.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/11315/1/res/res_rtp_asterisk.c@6357">Patch Set #1, Line 6357:</a> <code style="font-family:monospace,monospace">    *status_vector_chunk |= (status << (16 - 2 - (14 - *status_vector_chunk_bits)));</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Can you add a comment clarifying this calculation more? I'm sure it works, but at quick glance it seems like it bypasses the first two bits of the chunk minus the type and status/symbol size. I could be getting calc order precedence wrong too, so maybe more parens to make it more explicit/obvious?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/11315/1/res/res_rtp_asterisk.c@6366">Patch Set #1, Line 6366:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">        *status_vector_chunk_bits = 14;<br>       *status_vector_chunk = (1 << 15) | (1 << 14);<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I know this is in the draft, but maybe a small comment about the the magic number here, and why it's init the way it is. Or can put comment below in "...._feedback_produce" where they are also initialized.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/11315/1/res/res_rtp_asterisk.c@6451">Patch Set #1, Line 6451:</a> <code style="font-family:monospace,monospace">  * vector chunk or a run length chunk. The code tries to be as efficient as people to</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">s/people/possible</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/11315/1/res/res_rtp_asterisk.c@6526">Patch Set #1, Line 6526:</a> <code style="font-family:monospace,monospace">                put_unaligned_uint16(rtcpheader + packet_len, htons((0 << 15) | (run_length_chunk_status << 13) | run_length_chunk_count));</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This line begins with spaces instead of tabs.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/11315/1/res/res_rtp_asterisk.c@6600">Patch Set #1, Line 6600:</a> <code style="font-family:monospace,monospace"></code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Is the "instance" already locked or does the transport need to be locked, so there is not collision when reading (above) vs. writing (here) to the vector?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/11315">change 11315</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/11315"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I654a2cff5bd5554ab94457a14f70adb71f574afc </div>
<div style="display:none"> Gerrit-Change-Number: 11315 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 30 Apr 2019 20:14:51 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>