aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/sdp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-09-15 17:35:39 +0000
committerMartin Storsjö <martin@martin.st>2010-09-15 17:35:39 +0000
commit0048a2a8d347c9a81a781f4126023018f1b29527 (patch)
treeeb9e71c1e3edaa6eface988067c0fac44bd5656b /libavformat/sdp.c
parent82eac2f3216534c065c5023e5599720bd17bed26 (diff)
downloadffmpeg-0048a2a8d347c9a81a781f4126023018f1b29527.tar.gz
Handle G.722 in RTP, and all the exceptions mandated in RFC 3551
Originally committed as revision 25125 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r--libavformat/sdp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index f7c11934ac..a4bf7fb202 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -419,6 +419,12 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c,
av_strlcatf(buff, size, "a=rtpmap:%d VP8/90000\r\n",
payload_type);
break;
+ case CODEC_ID_ADPCM_G722:
+ if (payload_type >= RTP_PT_PRIVATE)
+ av_strlcatf(buff, size, "a=rtpmap:%d G722/%d/%d\r\n",
+ payload_type,
+ 8000, c->channels);
+ break;
default:
/* Nothing special to do here... */
break;