diff options
author | Martin Storsjö <martin@martin.st> | 2012-10-09 00:51:42 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-10-09 11:57:11 +0300 |
commit | c136a813d77ed0c8698386d140990e9003d5d38c (patch) | |
tree | a766749eddd8ad28ab3fa50c49ea8057694b9b69 /libavformat/sdp.c | |
parent | e04826c34e9b19cc4da60fd028334f12f84b4b2a (diff) | |
download | ffmpeg-c136a813d77ed0c8698386d140990e9003d5d38c.tar.gz |
rtp: Support packetization/depacketization of opus
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r-- | libavformat/sdp.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |