[xiph-commits] r2953 - liboggplay/trunk/src/liboggplay

shans at svn.annodex.net shans at svn.annodex.net
Sat Jun 16 01:58:54 PDT 2007


Author: shans
Date: 2007-06-16 01:58:54 -0700 (Sat, 16 Jun 2007)
New Revision: 2953

Modified:
   liboggplay/trunk/src/liboggplay/oggplay_callback_info.c
Log:
Fix for time-offset single-stream tracks



Modified: liboggplay/trunk/src/liboggplay/oggplay_callback_info.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay_callback_info.c	2007-06-16 08:52:37 UTC (rev 2952)
+++ liboggplay/trunk/src/liboggplay/oggplay_callback_info.c	2007-06-16 08:58:54 UTC (rev 2953)
@@ -193,8 +193,9 @@
      */
     diff = latest_first_record - me->target;
     diff = (diff / me->callback_period) * me->callback_period;
-    me->target += diff;
+    me->target += diff + me->callback_period;
 
+
     /*
      * update the presentation_time to the latest_first_record.  This ensures 
      * that we don't play material for timestamps that only exist in one track.



More information about the commits mailing list