decoder/audiofile: use integer seek times

This commit is contained in:
Max Kellermann 2014-08-26 11:29:22 +02:00
parent 8561c9c5a6
commit f057e1e17a

View File

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