From 367c6cbd3df265b35f25df1abc24fa08f3f9dfd3 Mon Sep 17 00:00:00 2001 From: ivo Date: Sun, 28 Sep 2008 21:10:07 +0000 Subject: [PATCH] Use _fseeki64 on Windows, where fseek is always 32-bit. Seek correctly when Vorbis file is over 2GB in size. Patch by Peter Harris. svn path=/trunk/vorbis/; revision=15347 --- include/vorbis/vorbisfile.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/vorbis/vorbisfile.h b/include/vorbis/vorbisfile.h index 3966f7c..fe3a3cc 100644 --- a/include/vorbis/vorbisfile.h +++ b/include/vorbis/vorbisfile.h @@ -50,7 +50,11 @@ typedef struct { static int _ov_header_fseek_wrap(FILE *f,ogg_int64_t off,int whence){ if(f==NULL)return(-1); +#ifdef _WIN32 + return _fseeki64(f,off,whence); +#else return fseek(f,off,whence); +#endif } /* These structs below (OV_CALLBACKS_DEFAULT etc) are defined here as @@ -192,4 +196,3 @@ extern int ov_halfrate_p(OggVorbis_File *vf); #endif - -- 2.34.1