[Asterisk-code-review] Add the ability to read the media file type from HTTP header... (asterisk[15])
Sean Bright
asteriskteam at digium.com
Thu Feb 15 09:36:29 CST 2018
Sean Bright has posted comments on this change. ( https://gerrit.asterisk.org/8209 )
Change subject: Add the ability to read the media file type from HTTP header for playback
......................................................................
Patch Set 4:
(1 comment)
https://gerrit.asterisk.org/#/c/8209/4/include/asterisk/mod_format.h
File include/asterisk/mod_format.h:
https://gerrit.asterisk.org/#/c/8209/4/include/asterisk/mod_format.h@47
PS4, Line 47: char mime_types[80]; /*!< MIME Types related to the format (separated by | if more than one)*/
> * 80 should be enough. The contents of the struct is constant and
> the compiler will warn if you try to assign a longer string into
> the fixed size where it is initialized.
We are using the same buffer size for extensions (3 characters on average) that we are proposing to use for MIME types which are much longer. I'm not worried about the safety side but more the practical "can this accommodate multiple MIME types comfortably without having to break ABI again in the future."
--
To view, visit https://gerrit.asterisk.org/8209
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: comment
Gerrit-Change-Id: I1b14692a49b2c1ac67688f58757184122e92ba89
Gerrit-Change-Number: 8209
Gerrit-PatchSet: 4
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: Gaurav Khurana <gkhurana at godaddy.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-Comment-Date: Thu, 15 Feb 2018 15:36:29 +0000
Gerrit-HasComments: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180215/bbe7ce69/attachment.html>
More information about the asterisk-code-review
mailing list