aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/sdp.c
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2007-11-09 12:33:28 +0000
committerLuca Abeni <lucabe72@email.it>2007-11-09 12:33:28 +0000
commitc9215bab98c6e7e8e55314eb216473a4ce004f0c (patch)
tree8794cd9fd6bf28d8be1eb073986d406efb8e795f /libavformat/sdp.c
parente9b67fe42e5ed136c7f47972c323c0416ee480d2 (diff)
downloadffmpeg-c9215bab98c6e7e8e55314eb216473a4ce004f0c.tar.gz
Add support for some more audio formats
Originally committed as revision 10969 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r--libavformat/sdp.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index f0c65b499f..86ec3b9ad9 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -166,6 +166,24 @@ static char *sdp_media_attributes(char *buff, int size, AVCodecContext *c, int p
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;