diff options
author | Terry Wilson <twilson@digium.com> | 2011-12-22 20:39:48 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2011-12-22 20:39:48 +0000 |
commit | b9bf2444e0557e9ed8321d47e3d85bb1ceab5863 (patch) | |
tree | 392af433139f87dccf9906a99c74eca2130e6d1c /include/asterisk/format_pref.h | |
parent | c4e48de2cc4e6e630c6cf099761b1e5c02bcfb68 (diff) |
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
........
Merged revisions 348845 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@348847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/format_pref.h')
-rw-r--r-- | include/asterisk/format_pref.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/format_pref.h b/include/asterisk/format_pref.h index 73a0bdc45..b034c18be 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 |