From 838b27b42c1838857e6b2ad47b4a932717108c10 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Thu, 19 Aug 2010 21:21:32 +0000 Subject: 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 --- libavformat/avformat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/avformat.h') diff --git a/libavformat/avformat.h b/libavformat/avformat.h index f49c842978..d61e293669 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -48,6 +48,9 @@ #ifndef FF_API_URL_CLASS #define FF_API_URL_CLASS (LIBAVFORMAT_VERSION_MAJOR >= 53) #endif +#ifndef FF_API_REGISTER_PROTOCOL +#define FF_API_REGISTER_PROTOCOL (LIBAVFORMAT_VERSION_MAJOR < 53) +#endif /** * I return the LIBAVFORMAT_VERSION_INT constant. You got -- cgit v1.2.3