summaryrefslogtreecommitdiff
path: root/libavformat/sdp.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-10-24 23:03:02 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-10-29 15:30:02 +0100
commit75bd01090f5b93eb1d2b4543d1c01031281879a4 (patch)
tree566fd84f6fe51d8a73e8411c1edd96964527be83 /libavformat/sdp.c
parente9930883a26c77261c19ea9ad9b930b065c6f579 (diff)
downloadffmpeg-75bd01090f5b93eb1d2b4543d1c01031281879a4.tar.gz
lavf/rtpenc: Add support for 24 bit pcm encoding as defined by RFC 3190.
Fixes ticket #6770.
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 0242ca379c..e7149167a1 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -584,6 +584,12 @@ static char *sdp_write_media_attributes(char *buff, int size, AVStream *st, int
payload_type,
p->sample_rate, p->channels);
break;
+ case AV_CODEC_ID_PCM_S24BE:
+ if (payload_type >= RTP_PT_PRIVATE)
+ av_strlcatf(buff, size, "a=rtpmap:%d L24/%d/%d\r\n",
+ payload_type,
+ p->sample_rate, p->channels);
+ break;
case AV_CODEC_ID_PCM_MULAW:
if (payload_type >= RTP_PT_PRIVATE)
av_strlcatf(buff, size, "a=rtpmap:%d PCMU/%d/%d\r\n",