changeset 3610:71ce7d228291 libavformat

change assert test due to the new reducing of time_base in av_set_pts_info, fix #561
author bcoudurier
date Wed, 30 Jul 2008 21:07:54 +0000
parents 08688b4b1441
children 2a7f495e8c56
files avidec.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/avidec.c	Wed Jul 30 07:41:32 2008 +0000
+++ b/avidec.c	Wed Jul 30 21:07:54 2008 +0000
@@ -1026,8 +1026,7 @@
             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),