[vlc-devel] [PATCH] mtime: fix assertion for 32-bit

Tristan Matthews le.businessman at gmail.com
Wed Dec 11 08:22:03 CET 2013


This assertion was failing on (0 > -48000)
---
 src/misc/mtime.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/mtime.c b/src/misc/mtime.c
index 9e22a70..ccdd189 100644
--- a/src/misc/mtime.c
+++ b/src/misc/mtime.c
@@ -219,7 +219,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;
     }
-- 
1.8.1.2




More information about the vlc-devel mailing list