Revision 75b5b631

View differences:

libavformat/mov.c
1722 1722
            sc->time_rate=1;
1723 1723
        av_set_pts_info(s->streams[i], 64, sc->time_rate, sc->time_scale);
1724 1724

  
1725
        assert(s->streams[i]->duration % sc->time_rate == 0);
1726
        s->streams[i]->duration /= sc->time_rate;
1725
        if(s->streams[i]->duration != AV_NOPTS_VALUE){
1726
            assert(s->streams[i]->duration % sc->time_rate == 0);
1727
            s->streams[i]->duration /= sc->time_rate;
1728
        }
1727 1729

  
1728 1730
        sc->ffindex = i;
1729 1731
        sc->is_ff_stream = 1;

Also available in: Unified diff