summaryrefslogtreecommitdiff
path: root/libavformat/sdp.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-10-07 20:47:10 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-10-07 20:47:10 +0200
commit2386cfc1ae2982101bee6024300c0af3113c4fd8 (patch)
treecc789b5fdb5a88fa39d1a78e6e2d3a2955ce09a2 /libavformat/sdp.c
parent50462e3e5e3229ca76336b9f607d1b48134ae8d8 (diff)
lavf/rtpenc: Add support for little-endian G.726.
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r--libavformat/sdp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 1f1c28e378..0242ca379c 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -680,6 +680,14 @@ static char *sdp_write_media_attributes(char *buff, int size, AVStream *st, int
p->sample_rate);
break;
}
+ case AV_CODEC_ID_ADPCM_G726LE: {
+ if (payload_type >= RTP_PT_PRIVATE)
+ av_strlcatf(buff, size, "a=rtpmap:%d G726-%d/%d\r\n",
+ payload_type,
+ p->bits_per_coded_sample*8,
+ p->sample_rate);
+ break;
+ }
case AV_CODEC_ID_ILBC:
av_strlcatf(buff, size, "a=rtpmap:%d iLBC/%d\r\n"
"a=fmtp:%d mode=%d\r\n",