Mercurial > libavformat.hg
diff avio.c @ 6392:daca8bebdd88 libavformat
add FF_API_URL_CLASS define to enable usage of URLContext as a AVClass
author | aurel |
---|---|
date | Thu, 19 Aug 2010 16:49:08 +0000 |
parents | 1c656ac8c9c9 |
children | 896acb967d32 |
line wrap: on
line diff
--- a/avio.c Thu Aug 19 14:54:37 2010 +0000 +++ b/avio.c Thu Aug 19 16:49:08 2010 +0000 @@ -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 @@ 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];