[vorbis-dev] Re: ov_open returning OV_EBADHEADER
Rodrigo Gómez
rgomez at msa.com.mx
Wed Jul 23 16:25:55 PDT 2003
Uhm... pretty obvious eh!
Sorry for the dummy question!
Thanks!
Rodrigo
"Stan Seibert" <volsung at mailsnare.net> escribió en el mensaje
news:1058998687.21776.1.camel at localhost...
On Wed, 2003-07-23 at 18:05, Rodrigo Gómez wrote:
> Hi there.
>
> I'm having this problem when trying to open the stream to play it. What
I'm
> doing is the following:
>
> archivo_original = fopen(Archivo.c_str(), "r");
Assuming this is Windows, you need to open the file with:
archivo_original = fopen(Archivo.c_str(), "rb");
The "rb" tells fopen() you want to open the file for reading in _binary_
mode. Windows otherwise will do newline translations which mess up the
reading of binary data.
---
Stan Seibert
<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-dev-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.
<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-dev-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-dev
mailing list