]> git.sesse.net Git - vlc/commitdiff
mtime: we might as well assert for real
authorDerk-Jan Hartman <hartman@videolan.org>
Sun, 10 Aug 2008 21:36:48 +0000 (23:36 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Sun, 10 Aug 2008 21:37:19 +0000 (23:37 +0200)
src/misc/mtime.c

index d5a809f5b5d284d9e4a170055f267684a4399cc3..6c13eacc49b4d578321a2d164020cf5f77d8a99d 100644 (file)
@@ -484,7 +484,7 @@ mtime_t date_Increment( date_t *p_date, uint32_t i_nb_samples )
     if( p_date->i_remainder >= p_date->i_divider_num )
     {
         /* This is Bresenham algorithm. */
-        /* It is guaranteed that: assert(i_remainder < 2*i_divider_num) */
+        assert( p_date->i_remainder < 2*p_date->i_divider_num);
         p_date->date += 1;
         p_date->i_remainder -= p_date->i_divider_num;
     }