diff sdp.c @ 6009:b740f4918397 libavformat

Make ff_sdp_write_media a lavf-internal function This is in preparation for RTP hinting in the MOV muxer, where it needs to be able to create SDP fragments for each media stream.
author mstorsjo
date Tue, 18 May 2010 19:32:59 +0000
parents 536e5527c1e0
children 16ca32d9c5f0
line wrap: on
line diff
--- a/sdp.c	Tue May 18 19:23:29 2010 +0000
+++ b/sdp.c	Tue May 18 19:32:59 2010 +0000
@@ -294,7 +294,7 @@
     return buff;
 }
 
-static void sdp_write_media(char *buff, int size, AVCodecContext *c, const char *dest_addr, int port, int ttl)
+void ff_sdp_write_media(char *buff, int size, AVCodecContext *c, const char *dest_addr, int port, int ttl)
 {
     const char *type;
     int payload_type;
@@ -352,7 +352,7 @@
             resolve_destination(dst, sizeof(dst));
         }
         for (j = 0; j < ac[i]->nb_streams; j++) {
-            sdp_write_media(buff, size,
+            ff_sdp_write_media(buff, size,
                                   ac[i]->streams[j]->codec, dst[0] ? dst : NULL,
                                   (port > 0) ? port + j * 2 : 0, ttl);
             if (port <= 0) {
@@ -369,4 +369,9 @@
 {
     return AVERROR(ENOSYS);
 }
+
+void ff_sdp_write_media(char *buff, int size, AVCodecContext *c,
+                        const char *dest_addr, int port, int ttl)
+{
+}
 #endif