Revision 3c9769a0

View differences:

libavformat/utils.c
898 898

  
899 899
    if(pkt->pts != AV_NOPTS_VALUE && delay <= MAX_REORDER_DELAY){
900 900
        st->pts_buffer[0]= pkt->pts;
901
        for(i=1; i<delay+1 && st->pts_buffer[i] == AV_NOPTS_VALUE; i++)
902
            st->pts_buffer[i]= (i-delay-1) * pkt->duration;
903 901
        for(i=0; i<delay && st->pts_buffer[i] > st->pts_buffer[i+1]; i++)
904 902
            FFSWAP(int64_t, st->pts_buffer[i], st->pts_buffer[i+1]);
905 903
        if(pkt->dts == AV_NOPTS_VALUE)

Also available in: Unified diff