[FFmpeg-devel] [PATCH 08/16] lavf: remove FF_API_URL_SPLIT cruft
Anton Khirnov
anton
Thu Feb 3 16:36:35 CET 2011
---
libavformat/internal.h | 12 ------------
libavformat/utils.c | 18 ------------------
libavformat/version.h | 3 ---
3 files changed, 0 insertions(+), 33 deletions(-)
diff --git a/libavformat/internal.h b/libavformat/internal.h
index b401d35..2dec1b5 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -101,18 +101,6 @@ int ff_probe_input_buffer(ByteIOContext **pb, AVInputFormat **fmt,
const char *filename, void *logctx,
unsigned int offset, unsigned int max_probe_size);
-#if FF_API_URL_SPLIT
-/**
- * @deprecated use av_url_split() instead
- */
-void ff_url_split(char *proto, int proto_size,
- char *authorization, int authorization_size,
- char *hostname, int hostname_size,
- int *port_ptr,
- char *path, int path_size,
- const char *url);
-#endif
-
/**
* Assemble a URL string from components. This is the reverse operation
* of av_url_split.
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 93fd71f..723188a 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3553,24 +3553,6 @@ void av_pkt_dump_log(void *avcl, int level, AVPacket *pkt, int dump_payload)
pkt_dump_internal(avcl, NULL, level, pkt, dump_payload);
}
-#if FF_API_URL_SPLIT
-attribute_deprecated
-void ff_url_split(char *proto, int proto_size,
- char *authorization, int authorization_size,
- char *hostname, int hostname_size,
- int *port_ptr,
- char *path, int path_size,
- const char *url)
-{
- av_url_split(proto, proto_size,
- authorization, authorization_size,
- hostname, hostname_size,
- port_ptr,
- path, path_size,
- url);
-}
-#endif
-
void av_url_split(char *proto, int proto_size,
char *authorization, int authorization_size,
char *hostname, int hostname_size,
diff --git a/libavformat/version.h b/libavformat/version.h
index ede32df..761c6f8 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -44,9 +44,6 @@
#ifndef FF_API_URL_CLASS
#define FF_API_URL_CLASS (LIBAVFORMAT_VERSION_MAJOR >= 53)
#endif
-#ifndef FF_API_URL_SPLIT
-#define FF_API_URL_SPLIT (LIBAVFORMAT_VERSION_MAJOR < 53)
-#endif
#ifndef FF_API_ALLOC_FORMAT_CONTEXT
#define FF_API_ALLOC_FORMAT_CONTEXT (LIBAVFORMAT_VERSION_MAJOR < 53)
#endif
--
1.7.2.3
More information about the ffmpeg-devel
mailing list