Revision cf7eef66

View differences:

libavformat/utils.c
1993 1993
    next_point = &s->packet_buffer;
1994 1994
    while(*next_point){
1995 1995
        AVStream *st2= s->streams[ (*next_point)->pkt.stream_index];
1996
        int64_t left=  st2->time_base.num * st ->time_base.den;
1997
        int64_t right= st ->time_base.num * st2->time_base.den;
1996
        int64_t left=  st2->time_base.num * (int64_t)st ->time_base.den;
1997
        int64_t right= st ->time_base.num * (int64_t)st2->time_base.den;
1998 1998
        if((*next_point)->pkt.dts * left > pkt->dts * right) //FIXME this can overflow
1999 1999
            break;
2000 2000
        next_point= &(*next_point)->next;

Also available in: Unified diff