List Info

Thread: Re: Is FLAC__stream_decoder_seek_absolute working for OggFlac?




Re: Is FLAC__stream_decoder_seek_absolute working for OggFlac?
country flaguser name
United States
2007-09-11 02:14:07
--- Erik de Castro Lopo <erikd-flacmega-nerd.com> wrote:

> Josh Coalson wrote:
> 
> > --- Erik de Castro Lopo <erikd-flacmega-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=3965454
69
_______________________________________________
Flac-dev mailing list
Flac-devxiph.org
http:
//lists.xiph.org/mailman/listinfo/flac-dev

Re: Is FLAC__stream_decoder_seek_absolute working for OggFlac?
user name
2007-09-11 02:26:15
Josh Coalson wrote:

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

Oh cool. I was wondering what happened to that issue.

Erik
-- 
------------------------------------------------------------
-----
Erik de Castro Lopo
------------------------------------------------------------
-----
"Web (hosting), security and high-performance computing
are the
three areas where Linux has more strength." --
Bob Muglia, senior VP in charge of Windows Server
development.
http://news.com.com/Microsoft+ta
rgets+Apache+Web+server/2100-1010_3-5735805.html
_______________________________________________
Flac-dev mailing list
Flac-devxiph.org
http:
//lists.xiph.org/mailman/listinfo/flac-dev

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )