changeset 484:43ef3cc33629 libavformat

1000l
author michael
date Sun, 20 Jun 2004 11:28:01 +0000
parents f4e9e55f703c
children 36b0feeb9c1f
files utils.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;