diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2010-08-19 16:49:08 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2010-08-19 16:49:08 +0000 |
commit | 404eba44b162cb583a47538376e4ca3e502b912f (patch) | |
tree | 588f1938b3e5a6b33b08a5efe344585906377653 /libavformat/avio.c | |
parent | cd223e0b4e1371d12d6cbb36bb66afdc40fd6281 (diff) | |
download | ffmpeg-streaming-404eba44b162cb583a47538376e4ca3e502b912f.zip ffmpeg-streaming-404eba44b162cb583a47538376e4ca3e502b912f.tar.gz |
add FF_API_URL_CLASS define to enable usage of URLContext as a AVClass
Originally committed as revision 24835 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r-- | libavformat/avio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c index 0e9e887..f19cb29 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -30,7 +30,7 @@ #include "network.h" #endif -#if LIBAVFORMAT_VERSION_MAJOR >= 53 +#if FF_API_URL_CLASS /** @name Logging context. */ /*@{*/ static const char *urlcontext_to_name(void *ptr) @@ -109,7 +109,7 @@ static int url_alloc_for_protocol (URLContext **puc, struct URLProtocol *up, err = AVERROR(ENOMEM); goto fail; } -#if LIBAVFORMAT_VERSION_MAJOR >= 53 +#if FF_API_URL_CLASS uc->av_class = &urlcontext_class; #endif uc->filename = (char *) &uc[1]; |