[xiph-cvs] cvs commit: speex/src speexdec.c

Jean-Marc Valin jm at xiph.org
Tue May 6 18:29:01 PDT 2003



jm          03/05/06 21:29:01

  Modified:    src      speexdec.c
  Log:
  applied segher patch. Fixed a destruction problem on corrupted input.

Revision  Changes    Path
1.75      +2 -1      speex/src/speexdec.c

Index: speexdec.c
===================================================================
RCS file: /usr/local/cvsroot/speex/src/speexdec.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- speexdec.c	22 Mar 2003 19:19:48 -0000	1.74
+++ speexdec.c	7 May 2003 01:29:01 -0000	1.75
@@ -658,8 +658,9 @@
       fprintf (stderr, "This doesn't look like a Speex file\n");
    }
    speex_bits_destroy(&bits);
+   if (stream_init)
+      ogg_stream_clear(&os);
    ogg_sync_clear(&oy);
-   ogg_stream_clear(&os);
 
 #if defined WIN32 || defined _WIN32
    if (fout && strlen(outFile)==0)

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list