Revision 57011a13 libavformat/utils.c

View differences:

libavformat/utils.c
1980 1980
    }
1981 1981
}
1982 1982

  
1983
/* absolute maximum size we read until we abort */
1984
#define MAX_READ_SIZE        5000000
1985

  
1986 1983
#define MAX_STD_TIMEBASES (60*12+5)
1987 1984
static int get_std_framerate(int i){
1988 1985
    if(i<60*12) return i*1001;
......
2081 2078
            }
2082 2079
        }
2083 2080
        /* we did not get all the codec info, but we read too much data */
2084
        if (read_size >= MAX_READ_SIZE) {
2081
        if (read_size >= ic->probesize) {
2085 2082
            ret = count;
2086
            av_log(ic, AV_LOG_DEBUG, "MAX_READ_SIZE reached\n");
2083
            av_log(ic, AV_LOG_DEBUG, "MAX_READ_SIZE:%d reached\n", ic->probesize);
2087 2084
            break;
2088 2085
        }
2089 2086

  

Also available in: Unified diff