[xiph-commits] r17573 - trunk/vorbis/lib

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Wed Oct 27 07:53:59 PDT 2010


Author: xiphmont
Date: 2010-10-27 07:53:59 -0700 (Wed, 27 Oct 2010)
New Revision: 17573

Modified:
   trunk/vorbis/lib/vorbisfile.c
Log:
libvorbis version of fix for Trac #1578 


Modified: trunk/vorbis/lib/vorbisfile.c
===================================================================
--- trunk/vorbis/lib/vorbisfile.c	2010-10-27 14:53:14 UTC (rev 17572)
+++ trunk/vorbis/lib/vorbisfile.c	2010-10-27 14:53:59 UTC (rev 17573)
@@ -919,7 +919,7 @@
        for second stage of seekable stream open; this saves having to
        seek/reread first link's serialnumber data then. */
     vf->serialnos=_ogg_calloc(serialno_list_size+2,sizeof(*vf->serialnos));
-    vf->serialnos[0]=vf->current_serialno;
+    vf->serialnos[0]=vf->current_serialno=vf->os.serialno;
     vf->serialnos[1]=serialno_list_size;
     memcpy(vf->serialnos+2,serialno_list,serialno_list_size*sizeof(*vf->serialnos));
 
@@ -927,7 +927,6 @@
     vf->dataoffsets=_ogg_calloc(1,sizeof(*vf->dataoffsets));
     vf->offsets[0]=0;
     vf->dataoffsets[0]=vf->offset;
-    vf->current_serialno=vf->os.serialno;
 
     vf->ready_state=PARTOPEN;
   }



More information about the commits mailing list