Displaying 12 results from an estimated 12 matches for "flac__stream_decoder_seek_error".
2007 Mar 06
1
FLAC__stream_decoder_seek_absolute with FLAC__STREAM_DECODER_SEEK_ERROR in 1.1.3 but it worked before
...have a stream offset of 0.
The result is that in the function seek_to_absolute_sample_, on line
3076 (file stream_decoder.c), the following test returns:
/* make sure we are not seeking in corrupted stream */
if (this_frame_sample < lower_bound_sample) {
decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
return false;
}
because 'this_frame_sample' is equal to 0 (because the seek table caused
the seek search to start at the beginning of the stream)
Now, since seeking in that file worked perfectly fine with older
libraries, I think it would be great if 1.1.3 and above would keep thi...
2006 Nov 03
2
better seeking
...const FLAC__uint64 range_bytes = (upper_bound>lower_bound? upper_bound - lower_bound - 1 : 0);
+ while(1) {
+ /* check if the bounds are still ok */
+ if (lower_bound_sample + FLAC__MIN_BLOCK_SIZE > upper_bound_sample || lower_bound > upper_bound) {
+ decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
+ return false;
+ }
+ if(needs_seek) {
#ifndef FLAC__INTEGER_ONLY_LIBRARY
#if defined _MSC_VER || defined __MINGW32__
- /* with MSVC you have to spoon feed it the casting */
- pos = (FLAC__int64)lower_bound + (FLAC__int64)(((FLAC__double)(FLAC__int64)target_offset / (FLAC__double)(FLAC__...
2006 Oct 28
3
better seeking
...rying to figure out a target, we just use
- * our current position.
- */
- if(pos < 0) {
- FLAC__uint64 upos;
- if(decoder->private_->tell_callback(decoder, &upos, decoder->private_->client_data) != FLAC__STREAM_DECODER_TELL_STATUS_OK) {
- decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
- return false;
- }
- pos = (FLAC__int64)upos;
- needs_seek = false;
- }
- else
- needs_seek = true;
-
- /* clip the position to the bounds, lower bound takes precedence */
- if(pos >= (FLAC__int64)upper_bound) {
- pos = (FLAC__int64)upper_bound-1;
- needs_seek = true;
- }
- if(pos <...
2006 Dec 05
4
flac-1.1.3 fails to decode where flac-1.1.2 works
...to be,
when I use 1.1.2 it decodes fine, when I use 1.1.3 it fails
flac --decode --skip=719:58.0 --until=1024:58.0 -o
\/home\/sbh\/work\/hs\/out.wav
\/mnt\/ss\/sdb\/Sound\/Recording\/2006\-11\-29\/in.flac
out.wav: ERROR seeking while skipping bytes
state = FLAC__STREAM_DECODER_SEEK_ERROR
Is there a way I can 'fix' the seektable with flac-1.1.3? What's my
best option moving forward here?
Thanks!
--
avuton
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
2006 Dec 05
4
flac-1.1.3 fails to decode where flac-1.1.2 works
...to be,
when I use 1.1.2 it decodes fine, when I use 1.1.3 it fails
flac --decode --skip=719:58.0 --until=1024:58.0 -o
\/home\/sbh\/work\/hs\/out.wav
\/mnt\/ss\/sdb\/Sound\/Recording\/2006\-11\-29\/in.flac
out.wav: ERROR seeking while skipping bytes
state = FLAC__STREAM_DECODER_SEEK_ERROR
Is there a way I can 'fix' the seektable with flac-1.1.3? What's my
best option moving forward here?
Thanks!
--
avuton
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
2007 Jul 14
2
Is FLAC__stream_decoder_seek_absolute working for OggFlac?
Hi all,
Is seeking working for OggFlac files? I keep on getting a
FLAC__STREAM_DECODER_SEEK_ERROR.
Erik
--
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"Why do they protest against France for making it illegal to wear
hijabs, but not against Saudi Arabia for making it illegal not to...
2004 Sep 10
2
better seeking
When I was trying to find yesterday's xmms-plugin bug, i have noticed
that seeking in stream without seek-table isn't very good. With
attached patch it is much better.
--
Miroslav Lichvar
-------------- next part --------------
--- src/libFLAC/seekable_stream_decoder.c.orig 2003-02-26 19:41:51.000000000 +0100
+++ src/libFLAC/seekable_stream_decoder.c 2003-07-09 23:49:35.000000000 +0200
2006 Dec 11
1
flac-1.1.3 fails to decode where flac-1.1.2 works
...> > flac --decode --skip=719:58.0 --until=1024:58.0 -o
> > \/home\/sbh\/work\/hs\/out.wav
> > \/mnt\/ss\/sdb\/Sound\/Recording\/2006\-11\-29\/in.flac
> >
> > out.wav: ERROR seeking while skipping bytes
> > state =
> > FLAC__STREAM_DECODER_SEEK_ERROR
> >
> > Is there a way I can 'fix' the seektable with flac-1.1.3? What's my
> > best option moving forward here?
>
> are you sure it's a problem with the seektable? flac-1.1.3 has
> a new seeking algorithm and yuo may have hit a bug with it.
>
> doe...
2007 Jul 25
2
Is FLAC__stream_decoder_seek_absolute working for OggFlac?
Josh Coalson wrote:
> --- Erik de Castro Lopo <erikd-flac@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 com...
2007 Sep 11
0
Is FLAC__stream_decoder_seek_absolute working for OggFlac?
...de Castro Lopo <erikd-flac@mega-nerd.com> wrote:
> Josh Coalson wrote:
>
> > --- Erik de Castro Lopo <erikd-flac@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 trigger...
2006 Dec 05
0
Fwd: flac-1.1.3 fails to decode where flac-1.1.2 works
...to be,
when I use 1.1.2 it decodes fine, when I use 1.1.3 it fails
flac --decode --skip=719:58.0 --until=1024:58.0 -o
\/home\/sbh\/work\/hs\/out.wav
\/mnt\/ss\/sdb\/Sound\/Recording\/2006\-11\-29\/in.flac
out.wav: ERROR seeking while skipping bytes
state = FLAC__STREAM_DECODER_SEEK_ERROR
Is there a way I can 'fix' the seektable with flac-1.1.3? What's my
best option moving forward here?
Thanks!
--
avuton
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
--
avuton
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
2006 Nov 06
2
better seeking
.../* check if the bounds are still ok */
> - if (lower_bound_sample + FLAC__MIN_BLOCK_SIZE > upper_bound_sample
> || lower_bound > upper_bound) {
> + if (lower_bound_sample >= upper_bound_sample || lower_bound >
> upper_bound) {
> decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
> return false;
> }
>
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail.
http://new.mail.yahoo.com