From: Terry Wilson Date: Thu, 22 Dec 2011 20:17:39 +0000 (+0000) Subject: Allow packetization vaules > 127 X-Git-Tag: 10.1.0-rc1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07fd1458d70fae3f144198cc83a4a706d99a485e;p=thirdparty%2Fasterisk.git Allow packetization vaules > 127 According to the RTP packetization documentation, and the maximum values listed in AST_FORMAT_LIST, we should support values > that the signed char array that ast_codec_pref makes available to store the value. All places in the code treat the framing field as though it were an int array instaead of a char array anyway, so this just fixes the type of the array. (closes issue ASTERISK-18876) Review: https://reviewboard.asterisk.org/r/1639/ ........ Merged revisions 348833 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@348845 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/format_pref.h b/include/asterisk/format_pref.h index 73a0bdc452..b034c18be7 100644 --- a/include/asterisk/format_pref.h +++ b/include/asterisk/format_pref.h @@ -34,7 +34,7 @@ struct ast_codec_pref { /*! This array represents the format id's index in the global format list. */ char order[AST_CODEC_PREF_SIZE]; /*! This array represents the format's framing size if present. */ - char framing[AST_CODEC_PREF_SIZE]; + int framing[AST_CODEC_PREF_SIZE]; }; /*! \page AudioCodecPref Audio Codec Preferences