[asterisk-commits] dvossel: branch dvossel/opus_codec_ftw r329766 - /team/dvossel/opus_codec_ftw...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jul 27 14:09:00 CDT 2011
Author: dvossel
Date: Wed Jul 27 14:08:57 2011
New Revision: 329766
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=329766
Log:
Advertise OPUS correctly in SDP
Modified:
team/dvossel/opus_codec_ftw/main/rtp_engine.c
Modified: team/dvossel/opus_codec_ftw/main/rtp_engine.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/opus_codec_ftw/main/rtp_engine.c?view=diff&rev=329766&r1=329765&r2=329766
==============================================================================
--- team/dvossel/opus_codec_ftw/main/rtp_engine.c (original)
+++ team/dvossel/opus_codec_ftw/main/rtp_engine.c Wed Jul 27 14:08:57 2011
@@ -1930,6 +1930,13 @@
set_next_mime_type(format, 0, "audio", "CELT", ast_format_rate(format));
add_static_payload(-1, format, 0);
break;
+ case AST_FORMAT_OPUS:
+ /* Right now OPUS is always advertised at 48khz. The actual max sample rate is
+ * defined in the a=fmtp maxcodedaudiobandwidth parameter. */
+ set_next_mime_type(format, 0, "audio", "opus", 48000);
+ add_static_payload(-1, format, 0);
+ break;
+
default:
break;
}
More information about the asterisk-commits
mailing list