[Flac-dev] Is FLAC__stream_decoder_seek_absolute working for
OggFlac?
Josh Coalson
xflac at yahoo.com
Tue Sep 11 00:14:07 PDT 2007
--- Erik de Castro Lopo <erikd-flac at mega-nerd.com> wrote:
> Josh Coalson wrote:
>
> > --- Erik de Castro Lopo <erikd-flac at mega-nerd.com> wrote:
> >
> > > Hi all,
> > >
> > > Is seeking working for OggFlac files? I keep on getting a
> > > FLAC__STREAM_DECODER_SEEK_ERROR.
> >
> > yes, it should work fine. in flac/src/test_seeking/main.c there
> > is an example usage of FLAC__stream_decoder_seek_absolute(). you
> > could try compiling it and running test_seeking on it. if if fails
> > maybe there is a bug that your stream is triggering.
>
> Ok, running the command:
>
> src/test_seeking/test_seeking flac_char.ogg
>
> resulted in:
>
> +++ seek test: FLAC__StreamDecoder (Ogg FLAC, read_mode=0)
>
> file's total_samples is 0
> Begin seek barrage, count=0
> #0:seek(0)... seek failed, assuming it was past EOF... OK
> #1:seek(1)... seek failed, assuming it was past EOF... OK
> #2:seek(2)... seek failed, assuming it was past EOF... OK
> #3:seek(3)... seek failed, assuming it was past EOF... OK
> #4:seek(4)... seek failed, assuming it was past EOF... OK
> #5:seek(5)... seek failed, assuming it was past EOF... OK
> #6:seek(6)... seek failed, assuming it was past EOF... OK
> #7:seek(7)... seek failed, assuming it was past EOF... OK
> #8:seek(8)... seek failed, assuming it was past EOF... OK
> #9:seek(9)... seek failed, assuming it was past EOF... OK
> #10:seek(2332)... seek failed, assuming it was past EOF... OK
> #11:seek(2331)... seek failed, assuming it was past EOF... OK
> #12:seek(2330)... seek failed, assuming it was past EOF... OK
> #13:seek(2329)... seek failed, assuming it was past EOF... OK
>
> and so on.
>
> The test file is here:
>
> http://www.mega-nerd.com/tmp/flac_char.ogg
yep, this is definitely a bug, thanks for the test case. requires
a tiny fix to the ogg seek algorithm which I will check in tonight.
Josh
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469
More information about the Flac-dev
mailing list