diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2010-08-10 20:36:36 +0400 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2010-08-10 20:36:36 +0400 |
commit | 3c0eec06d8895d95bd3930031809fa7442f08745 (patch) | |
tree | 019071bd84a3997e7769bebd990b5a16f494b8c1 /libavformat/nutdec.c | |
parent | f53b9a2964a97f1487c3256a45c1f74ed5910c8e (diff) |
get rid of MAX_STREAMS limit in nutdec
Originally committed as revision 24755 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r-- | libavformat/nutdec.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 1b616dee4a..5b4a923135 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -29,6 +29,12 @@ #undef NDEBUG #include <assert.h> +#if LIBAVFORMAT_VERSION_MAJOR < 53 +#define NUT_MAX_STREAMS MAX_STREAMS +#else +#define NUT_MAX_STREAMS 256 /* arbitrary sanity check value */ +#endif + static int get_str(ByteIOContext *bc, char *string, unsigned int maxlen){ unsigned int len= ff_get_v(bc); @@ -193,7 +199,7 @@ static int decode_main_header(NUTContext *nut){ end += url_ftell(bc); GET_V(tmp , tmp >=2 && tmp <= 3) - GET_V(stream_count , tmp > 0 && tmp <=MAX_STREAMS) + GET_V(stream_count , tmp > 0 && tmp <= NUT_MAX_STREAMS) nut->max_distance = ff_get_v(bc); if(nut->max_distance > 65536){ |