Committed fix to what most people know as the 'seek to zero' bug.
authorMonty <xiphmont@xiph.org>
Tue, 27 Mar 2001 07:04:51 +0000 (07:04 +0000)
committerMonty <xiphmont@xiph.org>
Tue, 27 Mar 2001 07:04:51 +0000 (07:04 +0000)
Monty

svn path=/trunk/vorbis/; revision=1407

lib/vorbisfile.c

index 7b91010..23645e0 100644 (file)
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: stdio-based convenience library for opening/seeking/decoding
- last mod: $Id: vorbisfile.c,v 1.43 2001/03/20 08:04:05 giles Exp $
+ last mod: $Id: vorbisfile.c,v 1.44 2001/03/27 07:04:51 xiphmont Exp $
 
  ********************************************************************/
 
@@ -915,7 +915,7 @@ int ov_pcm_seek_page(OggVorbis_File *vf,ogg_int64_t pos){
   }
   
   /* verify result */
-  if(vf->pcm_offset>=pos || pos>ov_pcm_total(vf,-1)){
+  if(vf->pcm_offset>pos || pos>ov_pcm_total(vf,-1)){
     ret=OV_EFAULT;
     goto seek_error;
   }