Revision b3fc0925

View differences:

libavformat/utils.c
1891 1891
             (st->codec->codec_id == CODEC_ID_MPEG4 && !st->need_parsing))*/)
1892 1892
            try_decode_frame(st, pkt->data, pkt->size);
1893 1893

  
1894
        if (av_rescale_q(codec_info_duration[st->index], st->time_base, AV_TIME_BASE_Q) >= ic->max_analyze_duration) {
1894
        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) {
1895 1895
            break;
1896 1896
        }
1897 1897
        count++;

Also available in: Unified diff