diff options
-rw-r--r-- | src/decoder/plugins/WavpackDecoderPlugin.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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); |