Commit f057e1e1 authored by Max Kellermann's avatar Max Kellermann

decoder/audiofile: use integer seek times

parent 8561c9c5
...@@ -234,8 +234,7 @@ audiofile_stream_decode(Decoder &decoder, InputStream &is) ...@@ -234,8 +234,7 @@ audiofile_stream_decode(Decoder &decoder, InputStream &is)
kbit_rate); kbit_rate);
if (cmd == DecoderCommand::SEEK) { if (cmd == DecoderCommand::SEEK) {
AFframecount frame = decoder_seek_where(decoder) * AFframecount frame = decoder_seek_where_frame(decoder);
audio_format.sample_rate;
afSeekFrame(fh, AF_DEFAULT_TRACK, frame); afSeekFrame(fh, AF_DEFAULT_TRACK, frame);
decoder_command_finished(decoder); 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