[FFmpeg-cvslog] r24755 - trunk/libavformat/nutdec.c
aurel
subversion
Tue Aug 10 18:36:36 CEST 2010
Author: aurel
Date: Tue Aug 10 18:36:36 2010
New Revision: 24755
Log:
get rid of MAX_STREAMS limit in nutdec
Modified:
trunk/libavformat/nutdec.c
Modified: trunk/libavformat/nutdec.c
==============================================================================
--- trunk/libavformat/nutdec.c Tue Aug 10 10:37:19 2010 (r24754)
+++ trunk/libavformat/nutdec.c Tue Aug 10 18:36:36 2010 (r24755)
@@ -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
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){
More information about the ffmpeg-cvslog
mailing list