diff options
author | Max Kellermann <max@duempel.org> | 2014-08-26 11:30:21 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-26 11:30:21 +0200 |
commit | 88705264574f60baaa5d3758bed83e6f67a27df5 (patch) | |
tree | aef00a23d1fbb09d0553f0de03a91c6d13189ce8 /src/decoder | |
parent | f057e1e17a216cb5d759b89e567e605f88856cd4 (diff) |
decoder/flac: use integer seek times
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/plugins/FlacDecoderPlugin.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder/plugins/FlacDecoderPlugin.cxx b/src/decoder/plugins/FlacDecoderPlugin.cxx index 39a0fce73..60772398c 100644 --- a/src/decoder/plugins/FlacDecoderPlugin.cxx +++ b/src/decoder/plugins/FlacDecoderPlugin.cxx @@ -181,8 +181,7 @@ flac_decoder_loop(struct flac_data *data, FLAC__StreamDecoder *flac_dec, if (cmd == DecoderCommand::SEEK) { FLAC__uint64 seek_sample = t_start + - decoder_seek_where(decoder) * - data->audio_format.sample_rate; + decoder_seek_where_frame(decoder); if (seek_sample >= t_start && (t_end == 0 || seek_sample <= t_end) && FLAC__stream_decoder_seek_absolute(flac_dec, seek_sample)) { |