aboutsummaryrefslogtreecommitdiff
path: root/libavformat/avio.c
diff options
context:
space:
mode:
authorAurelien Jacobs2010-08-19 21:21:32 +0000
committerAurelien Jacobs2010-08-19 21:21:32 +0000
commit838b27b42c1838857e6b2ad47b4a932717108c10 (patch)
tree6b9b9ad2845776ae5de8639e00efceba66cbc8b0 /libavformat/avio.c
parentb2125520e7a3772724c25de7771d3cc987698fd3 (diff)
add FF_API_REGISTER_PROTOCOL define to disable the deprecated
register_protocol() function Originally committed as revision 24840 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r--libavformat/avio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index f19cb29d95..9d50b48460 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -71,7 +71,7 @@ int av_register_protocol2(URLProtocol *protocol, int size)
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;