Mercurial > libavformat.hg
changeset 2729:e808770ba0c6 libavformat
Add support for some more audio formats
author | lucabe |
---|---|
date | Fri, 09 Nov 2007 12:33:28 +0000 |
parents | e00622d9d3c9 |
children | 7782a46ddbf5 |
files | sdp.c |
diffstat | 1 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sdp.c Thu Nov 08 21:27:37 2007 +0000 +++ b/sdp.c Fri Nov 09 12:33:28 2007 +0000 @@ -166,6 +166,24 @@ payload_type, c->sample_rate, c->channels, payload_type, config); break; + case CODEC_ID_PCM_S16BE: + if (payload_type >= 96) + av_strlcatf(buff, size, "a=rtpmap:%d L16/%d/%d\r\n", + payload_type, + c->sample_rate, c->channels); + break; + case CODEC_ID_PCM_MULAW: + if (payload_type >= 96) + av_strlcatf(buff, size, "a=rtpmap:%d PCMU/%d/%d\r\n", + payload_type, + c->sample_rate, c->channels); + break; + case CODEC_ID_PCM_ALAW: + if (payload_type >= 96) + av_strlcatf(buff, size, "a=rtpmap:%d PCMA/%d/%d\r\n", + payload_type, + c->sample_rate, c->channels); + break; default: /* Nothing special to do, here... */ break;