diff options
author | Martin Storsjö <martin@martin.st> | 2009-04-08 07:16:14 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2009-04-08 07:16:14 +0000 |
commit | 08e696c0b28e58797b4b77310e07a93ab3267369 (patch) | |
tree | 054415f25763b7323aad26488f7a5dbcd66321af /libavformat/sdp.c | |
parent | 17ad7b24c890a9816bd3e7b737c44ba7505aea67 (diff) | |
download | ffmpeg-08e696c0b28e58797b4b77310e07a93ab3267369.tar.gz |
Add support for AMR audio in the RTP muxer
patch by Martin Storsjö (martin AT martin DOT st)
Originally committed as revision 18375 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r-- | libavformat/sdp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index fd51bc76ef..67b10a21fe 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -228,6 +228,18 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c, payload_type, c->sample_rate, c->channels); break; + case CODEC_ID_AMR_NB: + av_strlcatf(buff, size, "a=rtpmap:%d AMR/%d/%d\r\n" + "a=fmtp:%d octet-align=1\r\n", + payload_type, c->sample_rate, c->channels, + payload_type); + break; + case CODEC_ID_AMR_WB: + av_strlcatf(buff, size, "a=rtpmap:%d AMR-WB/%d/%d\r\n" + "a=fmtp:%d octet-align=1\r\n", + payload_type, c->sample_rate, c->channels, + payload_type); + break; default: /* Nothing special to do here... */ break; |