# HG changeset patch # User michael # Date 1087730881 0 # Node ID 43ef3cc3362929558457f78accf19974b05c560a # Parent f4e9e55f703c0ecaef311bedb6e954fb12d7c827 1000l diff -r f4e9e55f703c -r 43ef3cc33629 utils.c --- a/utils.c Sat Jun 19 14:51:46 2004 +0000 +++ b/utils.c Sun Jun 20 11:28:01 2004 +0000 @@ -1993,8 +1993,8 @@ next_point = &s->packet_buffer; while(*next_point){ AVStream *st2= s->streams[ (*next_point)->pkt.stream_index]; - int64_t left= st2->time_base.num * st ->time_base.den; - int64_t right= st ->time_base.num * st2->time_base.den; + int64_t left= st2->time_base.num * (int64_t)st ->time_base.den; + int64_t right= st ->time_base.num * (int64_t)st2->time_base.den; if((*next_point)->pkt.dts * left > pkt->dts * right) //FIXME this can overflow break; next_point= &(*next_point)->next;