[vorbis] Access Violation in ov_open
Lance
lbp1 at cs.waikato.ac.nz
Sun Feb 18 03:41:14 PST 2001
If I do something similar to the below ov_open always causes an access
violation.
The call to fopen is successful.
Can anybody tell me why? (and how to fix it?)
OggVorbis_File vf;
int eof=0;
int current_section;
FILE *fd = fopen("c:\\test.ogg","rb");
if (!fd){
AfxTrace("fopen failed\n");
exit(0);
}
if(ov_open(fd, &vf, NULL, 0) < 0) {
fprintf(stderr,"Input does not appear to be an Ogg bitstream.\n");
exit(1);
}
Thanks,
Lance
--- >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 'vorbis-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 Vorbis
mailing list