diff options
author | Monty <xiphmont@xiph.org> | 2010-10-27 14:53:14 +0000 |
---|---|---|
committer | Monty <xiphmont@xiph.org> | 2010-10-27 14:53:14 +0000 |
commit | f0e001538585bc0dcf673f9fe54d4e90f6fa223e (patch) | |
tree | 56666d368212d025261508c5892f1e60e7ece550 | |
parent | eb57c519c1abf697b517e104df59e75aa8b09025 (diff) | |
download | tremor-f0e001538585bc0dcf673f9fe54d4e90f6fa223e.tar.gz |
Fix for Trac #1578; alter open1 so that serialnos[0] and
vf->current_serialno matches on return.
git-svn-id: https://svn.xiph.org/trunk/Tremor@17572 0101bb08-14d6-0310-b084-bc0e0c8e3800
-rw-r--r-- | vorbisfile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vorbisfile.c b/vorbisfile.c index 892d96e..c7afdb9 100644 --- a/vorbisfile.c +++ b/vorbisfile.c @@ -910,7 +910,7 @@ static int _ov_open1(void *f,OggVorbis_File *vf,const char *initial, 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)); @@ -918,7 +918,6 @@ static int _ov_open1(void *f,OggVorbis_File *vf,const char *initial, 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; } |