[xiph-cvs] cvs commit: vorbis-tools/ogginfo ogginfo.c
Michael Smith
msmith at xiph.org
Wed Jul 11 19:27:36 PDT 2001
msmith 01/07/11 19:27:36
Modified: ogginfo ogginfo.c
Log:
Portability fix for win32 from Peter Harris <peter.harris at hummingbird.com>
Revision Changes Path
1.4 +2 -3 vorbis-tools/ogginfo/ogginfo.c
Index: ogginfo.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/ogginfo/ogginfo.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ogginfo.c 2001/07/09 15:15:44 1.3
+++ ogginfo.c 2001/07/12 02:27:36 1.4
@@ -15,7 +15,6 @@
#include <ogg/ogg.h>
#include <vorbis/codec.h>
#include <vorbis/vorbisfile.h>
-#include <ao/ao.h>
void doinfo(char *);
int dointegritycheck(char *);
@@ -54,7 +53,7 @@
memset(&vf,0,sizeof(OggVorbis_File));
- fp = fopen(filename,"r");
+ fp = fopen(filename,"rb");
if (!fp) {
fprintf(stderr,"Unable to open \"%s\": %s\n",
filename,
@@ -108,7 +107,7 @@
/********** Decode setup ************/
- fp = fopen(filename,"r");
+ fp = fopen(filename,"rb");
if (!fp) {
fprintf(stderr,"Unable to open \"%s\": %s\n",
filename,
--- >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 'cvs-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 commits
mailing list