aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-06-20 11:28:01 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-06-20 11:28:01 +0000
commitcf7eef66cee00e6fc02f81d11176114183f7c434 (patch)
tree72005c6105e8b947bf96ed1e2faee69af8b0df04
parent9be653d0e995d01155528ed0d0d01894f52ae047 (diff)
downloadffmpeg-cf7eef66cee00e6fc02f81d11176114183f7c434.tar.gz
1000l
Originally committed as revision 3241 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 4e75bc157d..010d8c3100 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1993,8 +1993,8 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt){
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;