summaryrefslogtreecommitdiff
path: root/libavformat/sdp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-05-18 19:32:59 +0000
committerMartin Storsjö <martin@martin.st>2010-05-18 19:32:59 +0000
commit0341b6994ab2b819846fe1cf98b899235c5290fe (patch)
tree2c0f87468640a8c9674677f562ab76d0bc7c98af /libavformat/sdp.c
parent698f4cc7f0af0ba9ef54b01cfffd1f02d7aa5d05 (diff)
downloadffmpeg-0341b6994ab2b819846fe1cf98b899235c5290fe.tar.gz
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. Originally committed as revision 23160 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r--libavformat/sdp.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index a8cab6a68f..6bf05dbe39 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -294,7 +294,7 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c,
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 @@ int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size)
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 @@ int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size)
{
return AVERROR(ENOSYS);
}
+
+void ff_sdp_write_media(char *buff, int size, AVCodecContext *c,
+ const char *dest_addr, int port, int ttl)
+{
+}
#endif