[xiph-commits] r7198 - trunk/vorbis/lib

msmith at dactyl.lonelymoon.com msmith
Tue Jul 20 18:35:07 PDT 2004


Author: msmith
Date: Tue Jul 20 18:35:07 2004
New Revision: 7198

Modified:
trunk/vorbis/lib/vorbisfile.c
Log:
Patch from Barry Bouwsma:

The problem was in using an int for the return value of a 64-bit
function.  All other references to this function in this source file
use a proper 64-bit value.  This function returns the offset within
the file, and this int wraps to <0 at 2GB, causing an EOS to be
returned for any offset at any further point in a larger file.



Modified: trunk/vorbis/lib/vorbisfile.c
===================================================================
--- trunk/vorbis/lib/vorbisfile.c	2004-07-20 23:09:35 UTC (rev 7197)
+++ trunk/vorbis/lib/vorbisfile.c	2004-07-21 01:35:06 UTC (rev 7198)
@@ -11,7 +11,7 @@
********************************************************************

function: stdio-based convenience library for opening/seeking/decoding
- last mod: $Id: vorbisfile.c,v 1.75 2003/09/16 20:28:14 xiphmont Exp $
+ last mod: $Id$

********************************************************************/

@@ -542,7 +542,7 @@
}

if(vf->ready_state>=OPENED){
-      int ret;
+      ogg_int64_t ret;
if(!readp)return(0);
if((ret=_get_next_page(vf,&og,-1))<0){
return(OV_EOF); /* eof.



More information about the commits mailing list