diff nutdec.c @ 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 4f920c9dd895
children 4974b3d4992b
line wrap: on
line diff
--- a/nutdec.c	Tue Aug 17 14:25:14 2010 +0000
+++ b/nutdec.c	Tue Aug 17 19:30:21 2010 +0000
@@ -29,7 +29,7 @@
 #undef NDEBUG
 #include <assert.h>
 
-#if LIBAVFORMAT_VERSION_MAJOR < 53
+#if LAVF_API_MAX_STREAMS
 #define NUT_MAX_STREAMS MAX_STREAMS
 #else
 #define NUT_MAX_STREAMS 256    /* arbitrary sanity check value */