From b024c41e1e915e810d4760254622bcc5c0612c6d Mon Sep 17 00:00:00 2001 From: Dmitry Samonenko Date: Sat, 22 Sep 2012 14:32:37 +0400 Subject: Add initial support for speex RTP packetization (RFC 5574) * libspeex audio codec is no longer considered unsupported when using rtp as output format. * SDP rtpmap is added for speex payload, formatted according to RFC Signed-off-by: Michael Niedermayer --- 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 9d7dc0be0d..8ff4325817 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -567,6 +567,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); + default: /* Nothing special to do here... */ break; -- cgit v1.2.3