[xiph-commits] r12771 - trunk/xiph-qt/OggImport/src

arek at svn.xiph.org arek at svn.xiph.org
Sat Mar 17 14:23:13 PDT 2007


Author: arek
Date: 2007-03-17 14:23:11 -0700 (Sat, 17 Mar 2007)
New Revision: 12771

Modified:
   trunk/xiph-qt/OggImport/src/stream_theora.c
Log:
Fixed granulepos conversion in Theora streams.

Modified: trunk/xiph-qt/OggImport/src/stream_theora.c
===================================================================
--- trunk/xiph-qt/OggImport/src/stream_theora.c	2007-03-17 14:12:38 UTC (rev 12770)
+++ trunk/xiph-qt/OggImport/src/stream_theora.c	2007-03-17 21:23:11 UTC (rev 12771)
@@ -507,7 +507,7 @@
     ogg_int64_t frames = *gp >> si->si_theora.granulepos_shift;
     frames += *gp - (frames << si->si_theora.granulepos_shift);
 
-    time->value = SInt64ToWide(frames);
+    time->value = SInt64ToWide(S64Multiply(frames, S64Set(si->si_theora.fps_framelen)));
     time->scale = si->rate;
     time->base = NULL;
 



More information about the commits mailing list