Displaying 1 result from an estimated 1 matches for "frame_sync_".
2006 Oct 27
1
PATCH for seek bug (#1154585)
...ac file. The one
I'm using is only 45 kB. Simply write a routine that calls
FLAC__seekable_stream_decoder_seek_absolute to seek to random places
within the file, read a couple of bytes, and repeat. It will get
stuck eventually.
The cause of this problem is the first few lines of code in the
frame_sync_ function of stream_decoder.c. It checks to see if all the
frames have been decoded already. If they have, it returns EOS. This
optimization is well intentioned, and fine for non-seekable streams.
However, seekable_stream_decoder uses this code as well, and once all
the frames have been decoded,...