]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 296990 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 1 Dec 2010 17:01:00 +0000 (17:01 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 1 Dec 2010 17:01:00 +0000 (17:01 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r296990 | tilghman | 2010-12-01 10:59:26 -0600 (Wed, 01 Dec 2010) | 5 lines

  Clarify documentation on how we store codec preference lists.

  (closes issue #18397)
   Reported by: birgita
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@296991 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/frame.h

index e1270eec3af41639b1c2cb85b7fb31085fd23d59..2adb883105d1352fbd92721314a248224c03f2c6 100644 (file)
@@ -647,7 +647,15 @@ int ast_parse_allow_disallow(struct ast_codec_pref *pref, int *mask, const char
 /*! \brief Dump audio codec preference list into a string */
 int ast_codec_pref_string(struct ast_codec_pref *pref, char *buf, size_t size);
 
-/*! \brief Shift an audio codec preference list up or down 65 bytes so that it becomes an ASCII string */
+/*! \brief Shift an audio codec preference list up or down 65 bytes so that it becomes an ASCII string
+ * \note Due to a misunderstanding in how codec preferences are stored, this
+ * list starts at 'B', not 'A'.  For backwards compatibility reasons, this
+ * cannot change.
+ * \param pref A codec preference list structure
+ * \param buf A string denoting codec preference, appropriate for use in line transmission
+ * \param size Size of \a buf
+ * \param right Boolean:  if 0, convert from \a buf to \a pref; if 1, convert from \a pref to \a buf.
+ */
 void ast_codec_pref_convert(struct ast_codec_pref *pref, char *buf, size_t size, int right);
 
 /*! \brief Returns the number of samples contained in the frame */