[FFmpeg-cvslog] r20998 - in trunk/libavformat: avformat.h utils.c
stefano
subversion
Sat Jan 2 00:50:10 CET 2010
Author: stefano
Date: Sat Jan 2 00:50:10 2010
New Revision: 20998
Log:
Deprecate match_ext() in favor of av_match_ext(), and mark it for
deletion at the next major bump.
Modified:
trunk/libavformat/avformat.h
trunk/libavformat/utils.c
Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h Fri Jan 1 22:32:48 2010 (r20997)
+++ trunk/libavformat/avformat.h Sat Jan 2 00:50:10 2010 (r20998)
@@ -22,7 +22,7 @@
#define AVFORMAT_AVFORMAT_H
#define LIBAVFORMAT_VERSION_MAJOR 52
-#define LIBAVFORMAT_VERSION_MINOR 45
+#define LIBAVFORMAT_VERSION_MINOR 46
#define LIBAVFORMAT_VERSION_MICRO 0
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
@@ -1301,13 +1301,20 @@ void url_split(char *proto, int proto_si
char *path, int path_size,
const char *url);
+#if LIBAVFORMAT_VERSION_MAJOR < 53
+/**
+ * @deprecated Use av_match_ext() instead.
+ */
+attribute_deprecated int match_ext(const char *filename, const char *extensions);
+#endif
+
/**
* Returns a positive value if the given filename has one of the given
* extensions, 0 otherwise.
*
* @param extensions a comma-separated list of filename extensions
*/
-int match_ext(const char *filename, const char *extensions);
+int av_match_ext(const char *filename, const char *extensions);
#endif /* HAVE_AV_CONFIG_H */
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c Fri Jan 1 22:32:48 2010 (r20997)
+++ trunk/libavformat/utils.c Sat Jan 2 00:50:10 2010 (r20998)
@@ -137,8 +137,15 @@ void av_register_output_format(AVOutputF
format->next = NULL;
}
+#if LIBAVFORMAT_VERSION_MAJOR < 53
int match_ext(const char *filename, const char *extensions)
{
+ return av_match_ext(filename, extensions);
+}
+#endif
+
+int av_match_ext(const char *filename, const char *extensions)
+{
const char *ext, *p;
char ext1[32], *q;
More information about the ffmpeg-cvslog
mailing list