Mercurial > libavformat.hg
diff avformat.h @ 6383:65745776af68 libavformat
add LAVF_API_MAX_STREAMS define to disable the deprecated MAX_STREAMS API
author | aurel |
---|---|
date | Tue, 17 Aug 2010 19:30:21 +0000 |
parents | 63e7b0fb1616 |
children | 2d51ca7714c3 |
line wrap: on
line diff
--- a/avformat.h Tue Aug 17 14:25:14 2010 +0000 +++ b/avformat.h Tue Aug 17 19:30:21 2010 +0000 @@ -35,6 +35,10 @@ #define LIBAVFORMAT_IDENT "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION) +#ifndef LAVF_API_MAX_STREAMS +#define LAVF_API_MAX_STREAMS (LIBAVFORMAT_VERSION_MAJOR < 53) +#endif + /** * I return the LIBAVFORMAT_VERSION_INT constant. You got * a fucking problem with that, douchebag? @@ -630,7 +634,7 @@ AVMetadata *metadata; } AVChapter; -#if LIBAVFORMAT_VERSION_MAJOR < 53 +#if LAVF_API_MAX_STREAMS #define MAX_STREAMS 20 #endif