Revision 71ee6515 libavformat/utils.c

View differences:

libavformat/utils.c
2042 2042
    for(;;) {
2043 2043
        if(url_interrupt_cb()){
2044 2044
            ret= AVERROR(EINTR);
2045
            av_log(ic, AV_LOG_DEBUG, "interrupted\n");
2045 2046
            break;
2046 2047
        }
2047 2048

  
......
2066 2067
            if (!(ic->ctx_flags & AVFMTCTX_NOHEADER)) {
2067 2068
                /* if we found the info for all the codecs, we can stop */
2068 2069
                ret = count;
2070
                av_log(ic, AV_LOG_DEBUG, "All info found\n");
2069 2071
                break;
2070 2072
            }
2071 2073
        }
2072 2074
        /* we did not get all the codec info, but we read too much data */
2073 2075
        if (read_size >= MAX_READ_SIZE) {
2074 2076
            ret = count;
2077
            av_log(ic, AV_LOG_DEBUG, "MAX_READ_SIZE reached\n");
2075 2078
            break;
2076 2079
        }
2077 2080

  
......
2106 2109

  
2107 2110
        st = ic->streams[pkt->stream_index];
2108 2111
        if(codec_info_nb_frames[st->index]>1) {
2109
            if (st->time_base.den > 0 && av_rescale_q(codec_info_duration[st->index], st->time_base, AV_TIME_BASE_Q) >= ic->max_analyze_duration)
2112
            if (st->time_base.den > 0 && av_rescale_q(codec_info_duration[st->index], st->time_base, AV_TIME_BASE_Q) >= ic->max_analyze_duration){
2113
                av_log(ic, AV_LOG_DEBUG, "max_analyze_duration reached\n");
2110 2114
                break;
2115
            }
2111 2116
            codec_info_duration[st->index] += pkt->duration;
2112 2117
        }
2113 2118
        if (pkt->duration != 0)

Also available in: Unified diff