summaryrefslogtreecommitdiff
path: root/apps/codecs/libtremor/vorbisfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libtremor/vorbisfile.c')
-rw-r--r--apps/codecs/libtremor/vorbisfile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/codecs/libtremor/vorbisfile.c b/apps/codecs/libtremor/vorbisfile.c
index f0a83364ec..5721178b67 100644
--- a/apps/codecs/libtremor/vorbisfile.c
+++ b/apps/codecs/libtremor/vorbisfile.c
@@ -902,7 +902,7 @@ static int _ov_open1(void *f,OggVorbis_File *vf,const char *initial,
902 for second stage of seekable stream open; this saves having to 902 for second stage of seekable stream open; this saves having to
903 seek/reread first link's serialnumber data then. */ 903 seek/reread first link's serialnumber data then. */
904 vf->serialnos=_ogg_calloc(serialno_list_size+2,sizeof(*vf->serialnos)); 904 vf->serialnos=_ogg_calloc(serialno_list_size+2,sizeof(*vf->serialnos));
905 vf->serialnos[0]=vf->current_serialno; 905 vf->serialnos[0]=vf->current_serialno=vf->os.serialno;
906 vf->serialnos[1]=serialno_list_size; 906 vf->serialnos[1]=serialno_list_size;
907 memcpy(vf->serialnos+2,serialno_list,serialno_list_size*sizeof(*vf->serialnos)); 907 memcpy(vf->serialnos+2,serialno_list,serialno_list_size*sizeof(*vf->serialnos));
908 908
@@ -910,7 +910,6 @@ static int _ov_open1(void *f,OggVorbis_File *vf,const char *initial,
910 vf->dataoffsets=_ogg_calloc(1,sizeof(*vf->dataoffsets)); 910 vf->dataoffsets=_ogg_calloc(1,sizeof(*vf->dataoffsets));
911 vf->offsets[0]=0; 911 vf->offsets[0]=0;
912 vf->dataoffsets[0]=vf->offset; 912 vf->dataoffsets[0]=vf->offset;
913 vf->current_serialno=vf->os.serialno;
914 913
915 vf->ready_state=PARTOPEN; 914 vf->ready_state=PARTOPEN;
916 } 915 }