Revision 3c0eec06

View differences:

libavformat/nutdec.c
29 29
#undef NDEBUG
30 30
#include <assert.h>
31 31

  
32
#if LIBAVFORMAT_VERSION_MAJOR < 53
33
#define NUT_MAX_STREAMS MAX_STREAMS
34
#else
35
#define NUT_MAX_STREAMS 256    /* arbitrary sanity check value */
36
#endif
37

  
32 38
static int get_str(ByteIOContext *bc, char *string, unsigned int maxlen){
33 39
    unsigned int len= ff_get_v(bc);
34 40

  
......
193 199
    end += url_ftell(bc);
194 200

  
195 201
    GET_V(tmp              , tmp >=2 && tmp <= 3)
196
    GET_V(stream_count     , tmp > 0 && tmp <=MAX_STREAMS)
202
    GET_V(stream_count     , tmp > 0 && tmp <= NUT_MAX_STREAMS)
197 203

  
198 204
    nut->max_distance = ff_get_v(bc);
199 205
    if(nut->max_distance > 65536){

Also available in: Unified diff