diff sdp.c @ 6476:f06908662125 libavformat

Handle G.722 in RTP, and all the exceptions mandated in RFC 3551
author mstorsjo
date Wed, 15 Sep 2010 17:35:39 +0000
parents 1c0b01ca809d
children
line wrap: on
line diff
--- a/sdp.c	Tue Sep 14 22:20:46 2010 +0000
+++ b/sdp.c	Wed Sep 15 17:35:39 2010 +0000
@@ -419,6 +419,12 @@
             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;