[xiph-commits] r14073 - trunk/speex/libspeex

jm at svn.xiph.org jm at svn.xiph.org
Wed Oct 31 00:01:13 PDT 2007


Author: jm
Date: 2007-10-31 00:01:12 -0700 (Wed, 31 Oct 2007)
New Revision: 14073

Modified:
   trunk/speex/libspeex/jitter.c
Log:
jitter buffer: minor fix with tick()


Modified: trunk/speex/libspeex/jitter.c
===================================================================
--- trunk/speex/libspeex/jitter.c	2007-10-31 06:55:29 UTC (rev 14072)
+++ trunk/speex/libspeex/jitter.c	2007-10-31 07:01:12 UTC (rev 14073)
@@ -292,6 +292,9 @@
    float early_ratio_long;
    int incomplete = 0;
    
+   if (jitter->current_timestamp + jitter->sub_clock > jitter->pointer_timestamp)
+      speex_warning("something's wrong with the time");
+
    jitter->sub_clock = -1;
    jitter->current_timestamp = jitter->pointer_timestamp;
    
@@ -473,8 +476,7 @@
 {
    if (jitter->sub_clock == -1)
       jitter->sub_clock = 0;
-   else
-      jitter->sub_clock += jitter->resolution;
+   jitter->sub_clock += jitter->resolution;
 }
 
 /* Let the jitter buffer know it's the right time to adjust the buffering delay to the network conditions */



More information about the commits mailing list