summaryrefslogtreecommitdiff
path: root/libavformat/sdp.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-04-08 11:36:12 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-08 16:45:40 +0200
commitc3675dfe1e345a81d704fa0dd31151b8d54589ee (patch)
tree0da28405af63bbcb44d7f66f118a8b2b506ff2f1 /libavformat/sdp.c
parenta9bf9d8e5349114d37cc3baf0b1e7d95197c5ef8 (diff)
lavf: rename avf_sdp_create to av_sdp_create.
The new name is more consistent with the rest of the API.
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r--libavformat/sdp.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 02af7dce1d..0e46c3365f 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -474,7 +474,7 @@ void ff_sdp_write_media(char *buff, int size, AVCodecContext *c, const char *des
sdp_write_media_attributes(buff, size, c, payload_type);
}
-int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size)
+int av_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size)
{
AVMetadataTag *title = av_metadata_get(ac[0]->metadata, "title", NULL, 0);
struct sdp_session_level s;
@@ -531,7 +531,7 @@ int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size)
return 0;
}
#else
-int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size)
+int av_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size)
{
return AVERROR(ENOSYS);
}
@@ -540,3 +540,10 @@ void ff_sdp_write_media(char *buff, int size, AVCodecContext *c, const char *des
{
}
#endif
+
+#if FF_API_SDP_CREATE
+int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size)
+{
+ return av_sdp_create(ac, n_files, buff, size);
+}
+#endif