[PATCH] Declare ff_url_split(), ff_url_join(), av_match_ext(), and match_ext() functions outside the #ifdef HAVE_AV_CONFIG_H block.
Stefano Sabatini
stefano.sabatini-lala
Mon Mar 8 20:35:32 CET 2010
Fix the warnings:
ffserver.c: In function ?http_parse_request?:
ffserver.c:1376: warning: implicit declaration of function ?av_match_ext?
ffserver.c: In function ?rtsp_cmd_describe?:
ffserver.c:2844: warning: implicit declaration of function ?ff_url_split?
---
libavformat/avformat.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index eda556e..8e63950 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1339,6 +1339,8 @@ struct tm *brktimegm(time_t secs, struct tm *tm);
const char *small_strptime(const char *p, const char *fmt,
struct tm *dt);
+#endif /* HAVE_AV_CONFIG_H */
+
/**
* Splits a URL string into components. To reassemble components back into
* a URL, use ff_url_join instead of using snprintf directly.
@@ -1407,6 +1409,4 @@ attribute_deprecated int match_ext(const char *filename, const char *extensions)
*/
int av_match_ext(const char *filename, const char *extensions);
-#endif /* HAVE_AV_CONFIG_H */
-
#endif /* AVFORMAT_AVFORMAT_H */
--
1.6.6.1
--jI8keyz6grp/JLjh--
More information about the ffmpeg-devel
mailing list