[xiph-commits] r15342 - trunk/vorbis-tools/oggdec

ivo at svn.xiph.org ivo at svn.xiph.org
Sat Sep 27 15:01:04 PDT 2008


Author: ivo
Date: 2008-09-27 15:01:03 -0700 (Sat, 27 Sep 2008)
New Revision: 15342

Modified:
   trunk/vorbis-tools/oggdec/oggdec.c
Log:
Call ov_open_callbacks instead of ov_open to prevent crash in Windows.  oggdec now works.  Patch by Peter Harris.

Modified: trunk/vorbis-tools/oggdec/oggdec.c
===================================================================
--- trunk/vorbis-tools/oggdec/oggdec.c	2008-09-27 19:29:53 UTC (rev 15341)
+++ trunk/vorbis-tools/oggdec/oggdec.c	2008-09-27 22:01:03 UTC (rev 15342)
@@ -262,7 +262,7 @@
     int channels;
     int samplerate;
 
-    if(ov_open(in, &vf, NULL, 0) < 0) {
+    if (ov_open_callbacks(in, &vf, NULL, 0, OV_CALLBACKS_DEFAULT) < 0) {
         fprintf(stderr, _("ERROR: Failed to open input as Vorbis\n"));
         fclose(in);
         return 1;



More information about the commits mailing list