[vorbis-dev] ov_time_seek to 0s fails... AGAIN

OmegaDan omegadan at thehumbleguys.com
Thu Mar 1 17:09:03 PST 2001



I reported this exact same bug about two weeks ago!  I was told I must be
using it wrong :)  Maybe they'll take us seriously now :)

dan

On Fri, 02 Mar 2001, Takahiro WATANABE wrote:
> Date: Fri, 02 Mar 2001 14:51:06 +0900
> To: vorbis-dev at xiph.org
> From: Takahiro WATANABE <dee at bowfive.oag.co.jp>
> Reply-To: vorbis-dev at xiph.org
> Sender: owner-vorbis-dev at xiph.org
> Subject: Re: [vorbis-dev] ov_time_seek to 0s fails... AGAIN
> 
> Hello everybody,
> 
> >If you call
> >  ov_time_seek(vf, 0);
> >
> >it will fail, returning OV_EFAULT (from ov_pcm_seek_page). I think this
> must
> >be a bug, because seeking to 0 seconds *should* be OK.
> 
> The error seems to happen in latest snapshot's vorbisfile.c, function
> 'ov_pcm_seek_page', line 918-
> 
>   /* verify result */
>   if(vf->pcm_offset>=pos || pos>ov_pcm_total(vf,-1)){
>     ret=OV_EFAULT;
>     goto seek_error;
>   }
> 
> Is "vf->pcm_offset>=pos" correct ?
> 
> "vf->pcm_offset>pos" appears to work right ...
> 
> 
> 
> --
> Takahiro WATANABE <dee at bowfive.oag.co.jp>
> 
> 
> 
> --- >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.

--- >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