Revision c3aeaa54 libavformat/utils.c

View differences:

libavformat/utils.c
2218 2218
    }
2219 2219
    for(i=0;i<ic->nb_streams;i++) {
2220 2220
        st = ic->streams[i];
2221
        if(codec_info_nb_frames[i]>2)
2221
        if(codec_info_nb_frames[i]>2 && !st->avg_frame_rate.num)
2222 2222
            av_reduce(&st->avg_frame_rate.num, &st->avg_frame_rate.den,
2223 2223
                     (codec_info_nb_frames[i]-2)*(int64_t)st->time_base.den,
2224 2224
                      codec_info_duration[i]    *(int64_t)st->time_base.num, 60000);

Also available in: Unified diff