diff avio.c @ 6394:896acb967d32 libavformat

add FF_API_REGISTER_PROTOCOL define to disable the deprecated register_protocol() function
author aurel
date Thu, 19 Aug 2010 21:21:32 +0000
parents daca8bebdd88
children fed4be333771
line wrap: on
line diff
--- a/avio.c	Thu Aug 19 17:07:12 2010 +0000
+++ b/avio.c	Thu Aug 19 21:21:32 2010 +0000
@@ -71,7 +71,7 @@
     return 0;
 }
 
-#if LIBAVFORMAT_VERSION_MAJOR < 53
+#if FF_API_REGISTER_PROTOCOL
 /* The layout of URLProtocol as of when major was bumped to 52 */
 struct URLProtocol_compat {
     const char *name;