rtp: Support packetization/depacketization of opus
[ffmpeg.git] / libavformat / sdp.c
index 91de413dc6ca88b4ac328c104d4c755448ba0151..0f7eb2f00d248e682cc92aeb15e8c76070878023 100644 (file)
@@ -576,6 +576,10 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c,
             av_strlcatf(buff, size, "a=rtpmap:%d speex/%d\r\n",
                                      payload_type, c->sample_rate);
             break;
+        case AV_CODEC_ID_OPUS:
+            av_strlcatf(buff, size, "a=rtpmap:%d opus/48000\r\n",
+                                     payload_type);
+            break;
         default:
             /* Nothing special to do here... */
             break;