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

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">dsp.c: Update calls to ast_format_cmp to check result properly<br><br>ASTERISK-28311 #close<br><br>Change-Id: Ib1ce8fc1a8752751f5bf3615c59245532dfd9aa2<br>---<br>M main/dsp.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/dsp.c b/main/dsp.c</span><br><span>index 433e61a..871a687 100644</span><br><span>--- a/main/dsp.c</span><br><span>+++ b/main/dsp.c</span><br><span>@@ -1442,12 +1442,12 @@</span><br><span>  } else {</span><br><span>             odata = f->data.ptr;</span><br><span>              len = f->datalen;</span><br><span style="color: hsl(0, 100%, 40%);">-            if (ast_format_cmp(f->subclass.format, ast_format_ulaw)) {</span><br><span style="color: hsl(120, 100%, 40%);">+         if (ast_format_cmp(f->subclass.format, ast_format_ulaw) == AST_FORMAT_CMP_EQUAL) {</span><br><span>                        s = ast_alloca(len * 2);</span><br><span>                     for (x = 0; x < len; x++) {</span><br><span>                               s[x] = AST_MULAW(odata[x]);</span><br><span>                  }</span><br><span style="color: hsl(0, 100%, 40%);">-               } else if (ast_format_cmp(f->subclass.format, ast_format_alaw)) {</span><br><span style="color: hsl(120, 100%, 40%);">+          } else if (ast_format_cmp(f->subclass.format, ast_format_alaw) == AST_FORMAT_CMP_EQUAL) {</span><br><span>                         s = ast_alloca(len * 2);</span><br><span>                     for (x = 0; x < len; x++) {</span><br><span>                               s[x] = AST_ALAW(odata[x]);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14989">change 14989</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/+/14989"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 18 </div>
<div style="display:none"> Gerrit-Change-Id: Ib1ce8fc1a8752751f5bf3615c59245532dfd9aa2 </div>
<div style="display:none"> Gerrit-Change-Number: 14989 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>