mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@326855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1931,6 +1931,10 @@ int ast_rtp_engine_load_format(const struct ast_format *format)
|
||||
set_next_mime_type(format, 0, "audio", "SILK", ast_format_rate(format));
|
||||
add_static_payload(-1, format, 0);
|
||||
break;
|
||||
case AST_FORMAT_CELT:
|
||||
set_next_mime_type(format, 0, "audio", "CELT", ast_format_rate(format));
|
||||
add_static_payload(-1, format, 0);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user