From f64da46a984cd4ea4f512b13af722b54c33fc1f6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2014 11:39:58 +0200 Subject: decoder/wavpack: use integer seek times --- src/decoder/plugins/WavpackDecoderPlugin.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/decoder') diff --git a/src/decoder/plugins/WavpackDecoderPlugin.cxx b/src/decoder/plugins/WavpackDecoderPlugin.cxx index 248034350..870a1a80d 100644 --- a/src/decoder/plugins/WavpackDecoderPlugin.cxx +++ b/src/decoder/plugins/WavpackDecoderPlugin.cxx @@ -177,8 +177,7 @@ wavpack_decode(Decoder &decoder, WavpackContext *wpc, bool can_seek) while (cmd != DecoderCommand::STOP) { if (cmd == DecoderCommand::SEEK) { if (can_seek) { - unsigned where = decoder_seek_where(decoder) * - audio_format.sample_rate; + auto where = decoder_seek_where_frame(decoder); if (WavpackSeekSample(wpc, where)) { decoder_command_finished(decoder); -- cgit v1.2.3