Commit e62791e3 authored by michael's avatar michael

1000l


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3241 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 20e95481
...@@ -1993,8 +1993,8 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt){ ...@@ -1993,8 +1993,8 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt){
next_point = &s->packet_buffer; next_point = &s->packet_buffer;
while(*next_point){ while(*next_point){
AVStream *st2= s->streams[ (*next_point)->pkt.stream_index]; AVStream *st2= s->streams[ (*next_point)->pkt.stream_index];
int64_t left= st2->time_base.num * st ->time_base.den; int64_t left= st2->time_base.num * (int64_t)st ->time_base.den;
int64_t right= st ->time_base.num * st2->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 if((*next_point)->pkt.dts * left > pkt->dts * right) //FIXME this can overflow
break; break;
next_point= &(*next_point)->next; next_point= &(*next_point)->next;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment