Revision 7f938dd3

View differences:

libavformat/utils.c
1426 1426
    duration = INT64_MIN;
1427 1427
    for(i = 0;i < ic->nb_streams; i++) {
1428 1428
        st = ic->streams[i];
1429
        if (st->start_time != AV_NOPTS_VALUE) {
1429
        if (st->start_time != AV_NOPTS_VALUE && st->time_base.den) {
1430 1430
            start_time1= av_rescale_q(st->start_time, st->time_base, AV_TIME_BASE_Q);
1431 1431
            if (start_time1 < start_time)
1432 1432
                start_time = start_time1;

Also available in: Unified diff