diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-07-07 19:39:17 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-07-07 19:39:17 +0000 |
commit | d94bb98beca8a6eaf31ed889a172eca06045fedc (patch) | |
tree | 2ad8099f4523512b84dacc6d135c659bddf247eb /include/asterisk | |
parent | 0847f36c973247c1f2db1463fdc013708bf071b7 (diff) |
Adds pass-through support for codec CELT.
This patch adds pass-through support for CELT. CELT
formats are defined in codecs.conf and can be configured
to any sample rate a CELT endpoint supports. This patch also
addresses a crash in channel.c resulting from a frame list being
freed incorrectly. This crash was discovered while testing a CELT
translator which had to split encoded audio into multiple frames.
The codec translator is not a part of this patch, but may be
contributed in the future.
Review: https://reviewboard.asterisk.org/r/1294/
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@326855 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/format.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asterisk/format.h b/include/asterisk/format.h index 67e4178a2..d0f1021d5 100644 --- a/include/asterisk/format.h +++ b/include/asterisk/format.h @@ -28,6 +28,7 @@ #include "asterisk/astobj2.h" #include "asterisk/silk.h" +#include "asterisk/celt.h" #define AST_FORMAT_ATTR_SIZE 128 #define AST_FORMAT_INC 100000 @@ -99,6 +100,7 @@ enum ast_format_id { /*! Raw 16-bit Signed Linear (192000 Hz) PCM. maybe we're taking this too far. */ AST_FORMAT_SLINEAR192 = 27 + AST_FORMAT_TYPE_AUDIO, AST_FORMAT_SPEEX32 = 28 + AST_FORMAT_TYPE_AUDIO, + AST_FORMAT_CELT = 29 + AST_FORMAT_TYPE_AUDIO, /*! H.261 Video */ AST_FORMAT_H261 = 1 + AST_FORMAT_TYPE_VIDEO, |