History

Deprecate match_ext() in favor of av_match_ext(), and mark it for deletion at the next major bump.

Originally committed as revision 20998 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 16 years ago

Commit 8eb631f1 parent 24b207b2 files · +16 −2Browse files

Unified · Split

2 files
  1. libavformat/avformat.h +9 −2
  2. libavformat/utils.c +7 −0
libavformat/avformat.h+9−2
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222 #define AVFORMAT_AVFORMAT_H
2323
2424 #define LIBAVFORMAT_VERSION_MAJOR 52
25−#define LIBAVFORMAT_VERSION_MINOR 45
25+#define LIBAVFORMAT_VERSION_MINOR 46
2626 #define LIBAVFORMAT_VERSION_MICRO 0
2727
2828 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
@@ -1301,13 +1301,20 @@ void url_split(char *proto, int proto_size, · 1272 unmodified lines
13011301 char *path, int path_size,
13021302 const char *url);
13031303
1304+#if LIBAVFORMAT_VERSION_MAJOR < 53
1305+/**
1306+ * @deprecated Use av_match_ext() instead.
1307+ */
1308+attribute_deprecated int match_ext(const char *filename, const char *extensions);
1309+#endif
1310+
13041311 /**
13051312 * Returns a positive value if the given filename has one of the given
13061313 * extensions, 0 otherwise.
13071314 *
13081315 * @param extensions a comma-separated list of filename extensions
13091316 */
1310−int match_ext(const char *filename, const char *extensions);
1317+int av_match_ext(const char *filename, const char *extensions);
13111318
13121319 #endif /* HAVE_AV_CONFIG_H */
13131320
libavformat/utils.c+7−0
@@ -137,7 +137,14 @@ void av_register_output_format(AVOutputFormat *format) · 136 unmodified lines
137137 format->next = NULL;
138138 }
139139
140+#if LIBAVFORMAT_VERSION_MAJOR < 53
140141 int match_ext(const char *filename, const char *extensions)
142+{
143+ return av_match_ext(filename, extensions);
144+}
145+#endif
146+
147+int av_match_ext(const char *filename, const char *extensions)
141148 {
142149 const char *ext, *p;
143150 char ext1[32], *q;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t