Add support for some more audio formats
authorLuca Abeni <lucabe72@email.it>
Fri, 9 Nov 2007 12:33:28 +0000 (12:33 +0000)
committerLuca Abeni <lucabe72@email.it>
Fri, 9 Nov 2007 12:33:28 +0000 (12:33 +0000)
Originally committed as revision 10969 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/sdp.c

index f0c65b4..86ec3b9 100644 (file)
@@ -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;