Ticket #3931: patchmovanalyze.diff

File patchmovanalyze.diff, 724 bytes (added by Carl Eugen Hoyos, 12 years ago)
  • libavformat/utils.c

    diff --git a/libavformat/utils.c b/libavformat/utils.c
    index 6e828f7..cc9b2bc 100644
    a b int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)  
    29562956    av_opt_set(ic, "skip_clear", "1", AV_OPT_SEARCH_CHILDREN);
    29572957
    29582958    if (!max_analyze_duration) {
    2959         if (!strcmp(ic->iformat->name, "flv") && !(ic->ctx_flags & AVFMTCTX_NOHEADER)) {
     2959        if ((   !strcmp(ic->iformat->name, "flv")
     2960             || !strcmp(ic->iformat->name, "mov,mp4,m4a,3gp,3g2,mj2"))
     2961            && !(ic->ctx_flags & AVFMTCTX_NOHEADER)) {
    29602962            max_analyze_duration = 10*AV_TIME_BASE;
    29612963        } else
    29622964            max_analyze_duration = 5*AV_TIME_BASE;