rtp: Support packetization/depacketization of opus
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
e04826c34e
commit
c136a813d7
3 changed files with 30 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue