Commit f64da46a authored by Max Kellermann's avatar Max Kellermann

decoder/wavpack: use integer seek times

parent 2052a029
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment