Hi, I put together a small a Visual C++ 6.0 project that uses the code from vorbisfile_example.c. I open an ogg file in binary mode and when ov_open gets called, it always fails. I then put together another project and compiled vorbisfile so I could see where the error was occuring. It is happening in _fetch_headers when it calls ogg_stream_packetout. The return values is -1, which means there is a bad header. I took the same ogg file and then I tried using it with code from decoder_example.c and when it calls ogg_stream_packetout it is fine. Any suggestions? Thanks -Elliot <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 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> I put together a small a Visual C++ 6.0 project that uses the code from > vorbisfile_example.c. I open an ogg file in binary mode and when ov_open > gets called, it always fails. I then put together another project and > compiled vorbisfile so I could see where the error was occuring. It is > happening in _fetch_headers when it calls ogg_stream_packetout. The return > values is -1, which means there is a bad header. > I took the same ogg file and then I tried using it with code from > decoder_example.c and when it calls ogg_stream_packetout it is fine. > > Any suggestions?Yes, post the relevant code fragment. jack. --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Hi, Scratch my email about an error with ov_open. Everything works fine. I found out what I was doing wrong. It's been a long day. Thanks -Elliot <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 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.