[Asterisk-code-review] translate.c: Take sampling rate into account when checking codec's bu... (asterisk[master])

Jean Aunis - Prescom asteriskteam at digium.com
Fri Apr 23 00:56:36 CDT 2021


Jean Aunis - Prescom has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/15801 )

Change subject: translate.c: Take sampling rate into account when checking codec's buffer size
......................................................................


Patch Set 1:

(1 comment)

https://gerrit.asterisk.org/c/asterisk/+/15801/1/main/translate.c 
File main/translate.c:

https://gerrit.asterisk.org/c/asterisk/+/15801/1/main/translate.c@418 
PS1, Line 418: src_srate
> > I think a check for src_rate being 0 is warranted to prevent a divide by 0 error. […]
The sample rate is checked in __ast_codec_register_with_format. So I think an ast_assert is enough.



-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/15801
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I9aebe2f8788e00321a7f5c47aa97c617f39e9055
Gerrit-Change-Number: 15801
Gerrit-PatchSet: 1
Gerrit-Owner: Jean Aunis - Prescom <jean.aunis at prescom.fr>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-CC: Sean Bright <sean at seanbright.com>
Gerrit-Comment-Date: Fri, 23 Apr 2021 05:56:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Sean Bright <sean at seanbright.com>
Comment-In-Reply-To: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210423/ecfd21bd/attachment.html>


More information about the asterisk-code-review mailing list