diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-07-30 21:07:54 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-07-30 21:07:54 +0000 |
commit | 62f2523062c022c511eccff88a0dc2cf9e62a70a (patch) | |
tree | 5249b4bcae1ee259f890d5c49308a4879429db2f /libavformat/avidec.c | |
parent | c1708e8dc8e962532a4e5898731f634ecb6736fa (diff) | |
download | ffmpeg-62f2523062c022c511eccff88a0dc2cf9e62a70a.tar.gz |
change assert test due to the new reducing of time_base in av_set_pts_info, fix #561
Originally committed as revision 14477 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r-- | libavformat/avidec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 0712dc3979..dcbf766d9e 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -1026,8 +1026,7 @@ static int avi_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp continue; // assert(st2->codec->block_align); - assert(st2->time_base.den == ast2->rate); - assert(st2->time_base.num == ast2->scale); + assert((int64_t)st2->time_base.num*ast2->rate == (int64_t)st2->time_base.den*ast2->scale); index = av_index_search_timestamp( st2, av_rescale(timestamp, st2->time_base.den*(int64_t)st->time_base.num, st->time_base.den * (int64_t)st2->time_base.num), |