<p>Friendly Automation <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11295">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  mattf: Looks good to me, approved
  Friendly Automation: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_remb_modifier:  Propertly initialize bitrate to 0.0<br><br>...and return the frame unaltered if bitrate can't be determined.<br><br>Change-Id: Ib2175ab84f85a3d7060d31625f5a2c7fbcc2ba4c<br>---<br>M res/res_remb_modifier.c<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_remb_modifier.c b/res/res_remb_modifier.c</span><br><span>index a4a83bc..bf56391 100644</span><br><span>--- a/res/res_remb_modifier.c</span><br><span>+++ b/res/res_remb_modifier.c</span><br><span>@@ -62,7 +62,7 @@</span><br><span>       struct ast_datastore *remb_store;</span><br><span>    struct remb_values *remb_values;</span><br><span>     int exp;</span><br><span style="color: hsl(0, 100%, 40%);">-        float bitrate;</span><br><span style="color: hsl(120, 100%, 40%);">+        float bitrate = 0.0;</span><br><span> </span><br><span>     if (!frame) {</span><br><span>                return NULL;</span><br><span>@@ -98,6 +98,8 @@</span><br><span>             bitrate = remb_values->receive_bitrate;</span><br><span>   } else if (event == AST_FRAMEHOOK_EVENT_WRITE && remb_values->send_bitrate) {</span><br><span>             bitrate = remb_values->send_bitrate;</span><br><span style="color: hsl(120, 100%, 40%);">+       } else {</span><br><span style="color: hsl(120, 100%, 40%);">+              return frame;</span><br><span>        }</span><br><span> </span><br><span>        /*</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/11295">change 11295</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/+/11295"/><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: Ib2175ab84f85a3d7060d31625f5a2c7fbcc2ba4c </div>
<div style="display:none"> Gerrit-Change-Number: 11295 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: mattf <creslin@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>