[FFmpeg-cvslog] r11585 - trunk/libavformat/sdp.c

lucabe subversion
Mon Jan 21 12:09:06 CET 2008


Author: lucabe
Date: Mon Jan 21 12:09:06 2008
New Revision: 11585

Log:
Add minimal support for H.264 video in the SDP generator


Modified:
   trunk/libavformat/sdp.c

Modified: trunk/libavformat/sdp.c
==============================================================================
--- trunk/libavformat/sdp.c	(original)
+++ trunk/libavformat/sdp.c	Mon Jan 21 12:09:06 2008
@@ -137,6 +137,12 @@ static char *sdp_media_attributes(char *
     char *config = NULL;
 
     switch (c->codec_id) {
+        case CODEC_ID_H264:
+            av_strlcatf(buff, size, "a=rtpmap:%d H264/90000\r\n"
+                                    "a=fmtp:%d packetization-mode=1%s\r\n",
+                                     payload_type,
+                                     payload_type, config ? config : "");
+            break;
         case CODEC_ID_MPEG4:
             if (c->extradata_size) {
                 config = extradata2config(c);




More information about the ffmpeg-cvslog mailing list