diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2010-08-17 19:30:21 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2010-08-17 19:30:21 +0000 |
commit | 072e3efd1b0ca3c5d08fa2119e88fb36b5708592 (patch) | |
tree | a8bc9a3117cbda1a9ad97bae018671d5a1e68719 /libavformat/avformat.h | |
parent | 6a36facc3d9c097f626669825e901f09467b542b (diff) | |
download | ffmpeg-072e3efd1b0ca3c5d08fa2119e88fb36b5708592.tar.gz |
add LAVF_API_MAX_STREAMS define to disable the deprecated MAX_STREAMS API
Originally committed as revision 24817 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index a6c40ad8b7..3715d848e4 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -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 @@ typedef struct AVChapter { AVMetadata *metadata; } AVChapter; -#if LIBAVFORMAT_VERSION_MAJOR < 53 +#if LAVF_API_MAX_STREAMS #define MAX_STREAMS 20 #endif |