[xiph-commits] r17332 - trunk/oggdsf/src/lib/codecs/vorbis/filters/dsfVorbisDecoder

cristianadam at svn.xiph.org cristianadam at svn.xiph.org
Wed Jul 14 14:42:37 PDT 2010


Author: cristianadam
Date: 2010-07-14 14:42:37 -0700 (Wed, 14 Jul 2010)
New Revision: 17332

Modified:
   trunk/oggdsf/src/lib/codecs/vorbis/filters/dsfVorbisDecoder/VorbisDecodeInputPin.cpp
Log:
Fixed bug introduced in version 0.84.17315 (http streams played only silence)

Modified: trunk/oggdsf/src/lib/codecs/vorbis/filters/dsfVorbisDecoder/VorbisDecodeInputPin.cpp
===================================================================
--- trunk/oggdsf/src/lib/codecs/vorbis/filters/dsfVorbisDecoder/VorbisDecodeInputPin.cpp	2010-07-09 03:40:05 UTC (rev 17331)
+++ trunk/oggdsf/src/lib/codecs/vorbis/filters/dsfVorbisDecoder/VorbisDecodeInputPin.cpp	2010-07-14 21:42:37 UTC (rev 17332)
@@ -153,6 +153,11 @@
         unsigned long bytesToCopy = 0;
 
         REFERENCE_TIME globalOffset = 0;
+        if (mFrameSize != 0 && mSampleRate != 0)
+        {
+            tStart = convertGranuleToTime(tStop) - (((mDecodedByteCount / mFrameSize) * UNITS) / mSampleRate);
+        }
+
         //Handle stream offsetting
         if (!mSentStreamOffset && (mOggOutputPinInterface != NULL)) 
         {
@@ -162,7 +167,6 @@
 
         if (mOggOutputPinInterface != NULL) 
         {
-            tStart = convertGranuleToTime(tStop) - (((mDecodedByteCount / mFrameSize) * UNITS) / mSampleRate);
             globalOffset = mOggOutputPinInterface->getGlobalBaseTime();
         }
 



More information about the commits mailing list