search for: has_seek_table

Displaying 6 results from an estimated 6 matches for "has_seek_table".

2006 Nov 07
0
better seeking
...els(decoder); - const unsigned bps = FLAC__stream_decoder_get_bits_per_sample(decoder); + unsigned channels = FLAC__stream_decoder_get_channels(decoder); + unsigned bps = FLAC__stream_decoder_get_bits_per_sample(decoder); const FLAC__StreamMetadata_SeekTable *seek_table = decoder->private_->has_seek_table? &decoder->private_->seek_table.data.seek_table : 0; + /* use values from stream info if we didn't decode a frame */ + if (channels == 0) + channels = decoder->private_->stream_info.data.stream_info.channels; + if (bps == 0) + bps = decoder->private_->stream_info.data....
2006 Nov 06
2
better seeking
ok, tried it out... passes test/test_seeking.sh and my "xmms twitch" test, checked in to CVS. thanks! Josh --- Miroslav Lichvar <lichvarm@phoenix.inf.upol.cz> wrote: > On Fri, Nov 03, 2006 at 10:01:42AM +0100, Miroslav Lichvar wrote: > > Thanks. Sending latest version of the patch. Now it can seek in > files > > that have large id3 tag (or any random data) at
2006 Oct 28
3
better seeking
...coder_get_bits_per_sample(decoder); + const unsigned channels = decoder->private_->stream_info.data.stream_info.channels; + const unsigned bps = decoder->private_->stream_info.data.stream_info.bits_per_sample; const FLAC__StreamMetadata_SeekTable *seek_table = decoder->private_->has_seek_table? &decoder->private_->seek_table.data.seek_table : 0; /* we are just guessing here, but we want to guess high, not low */ @@ -2961,12 +2961,14 @@ * the first and last frames. */ lower_bound = first_frame_offset; + lower_bound_sample = 0; /* calc the upper_bound, beyond whic...
2006 Nov 03
2
better seeking
...nfo.data.stream_info.min_framesize; + const unsigned channels = decoder->private_->stream_info.data.stream_info.channels; + const unsigned bps = decoder->private_->stream_info.data.stream_info.bits_per_sample; const FLAC__StreamMetadata_SeekTable *seek_table = decoder->private_->has_seek_table? &decoder->private_->seek_table.data.seek_table : 0; - /* we are just guessing here, but we want to guess high, not low */ + /* we are just guessing here */ if(max_framesize > 0) - approx_bytes_per_frame = max_framesize; + approx_bytes_per_frame = (max_framesize + min_framesize)...
2012 May 05
5
[PATCH] Optionally, allow distros to use openssl for MD5 verification
...g) { + md5_failed = (EVP_DigestFinal_ex(&decoder->private_->md5context, decoder->private_->computed_md5sum, NULL) == 0); + } +#else FLAC__MD5Final(decoder->private_->computed_md5sum, &decoder->private_->md5context); - +#endif if(decoder->private_->has_seek_table && 0 != decoder->private_->seek_table.data.seek_table.points) { free(decoder->private_->seek_table.data.seek_table.points); decoder->private_->seek_table.data.seek_table.points = 0; @@ -1018,11 +1030,15 @@ FLAC_API FLAC__bool FLAC__stream_decoder_reset(FLAC__StreamDe...
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