Commit 17b124a7 authored by ivo's avatar ivo

Call ov_open_callbacks instead of ov_open to prevent crash in Windows. oggdec...

Call ov_open_callbacks instead of ov_open to prevent crash in Windows.  oggdec now works.  Patch by Peter Harris.

svn path=/trunk/vorbis-tools/; revision=15342
parent e27ebf8d
......@@ -262,7 +262,7 @@ static int decode_file(FILE *in, FILE *out, char *infile, char *outfile)
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment