]> git.sesse.net Git - vlc/blobdiff - src/misc/mtime.c
avcodec: map HNM4
[vlc] / src / misc / mtime.c
index 06fa3b931a7328b64e1f4f640c3d9e5b2e6f3922..62409edd6b944bc7beb359c5b96f2c9c73e41845 100644 (file)
@@ -36,9 +36,7 @@
 #include <vlc_common.h>
 #include <assert.h>
 
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 #if !defined (_POSIX_TIMERS) || defined (_WIN32)
 # define _POSIX_TIMERS (-1)
 #endif
@@ -219,7 +217,7 @@ mtime_t date_Decrement( date_t *p_date, uint32_t i_nb_samples )
     if( p_date->i_remainder < i_rem_adjust )
     {
         /* This is Bresenham algorithm. */
-        assert( p_date->i_remainder > -p_date->i_divider_num);
+        assert( p_date->i_remainder p_date->i_divider_num);
         p_date->date -= 1;
         p_date->i_remainder += p_date->i_divider_num;
     }