From c136a813d77ed0c8698386d140990e9003d5d38c Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Tue, 9 Oct 2012 00:51:42 +0300 Subject: rtp: Support packetization/depacketization of opus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavformat/sdp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavformat/sdp.c') diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 91de413dc6..0f7eb2f00d 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -576,6 +576,10 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c, av_strlcatf(buff, size, "a=rtpmap:%d speex/%d\r\n", payload_type, c->sample_rate); break; + case AV_CODEC_ID_OPUS: + av_strlcatf(buff, size, "a=rtpmap:%d opus/48000\r\n", + payload_type); + break; default: /* Nothing special to do here... */ break; -- cgit v1.2.3