diff options
author | Dmitry Samonenko <shreddingwork@gmail.com> | 2012-09-22 14:32:37 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-09-26 20:04:57 +0400 |
commit | 490ae95aa81db681f426e8ca7f8a539adfebc895 (patch) | |
tree | 3540494fe664d09a74da7fc01b0bd839c3b69fe3 /libavformat/sdp.c | |
parent | 92d2b909a0de6e2f77a98405280c78052b35b421 (diff) |
rtpenc: Add support for packetizing speex
This packetization scheme simply places the full packets into the
RTP packet without any extra header bytes.
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 a77c8ebcac..3791930b59 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -572,6 +572,10 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c, payload_type, c->sample_rate, payload_type, c->block_align == 38 ? 20 : 30); break; + case AV_CODEC_ID_SPEEX: + av_strlcatf(buff, size, "a=rtpmap:%d speex/%d\r\n", + payload_type, c->sample_rate); + break; default: /* Nothing special to do here... */ break; |