[asterisk-commits] twilson: trunk r348847 - in /trunk: ./ include/asterisk/format_pref.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 22 14:39:54 CST 2011


Author: twilson
Date: Thu Dec 22 14:39:48 2011
New Revision: 348847

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=348847
Log:
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

Modified:
    trunk/   (props changed)
    trunk/include/asterisk/format_pref.h

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.

Modified: trunk/include/asterisk/format_pref.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/format_pref.h?view=diff&rev=348847&r1=348846&r2=348847
==============================================================================
--- trunk/include/asterisk/format_pref.h (original)
+++ trunk/include/asterisk/format_pref.h Thu Dec 22 14:39:48 2011
@@ -34,7 +34,7 @@
 	/*! 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




More information about the asterisk-commits mailing list