decoder/mpcdec: use integer seek times

This commit is contained in:
Max Kellermann 2014-08-26 11:31:49 +02:00
parent 8870526457
commit 7f4f8b7c7d

View File

@ -185,8 +185,8 @@ mpcdec_decode(Decoder &mpd_decoder, InputStream &is)
DecoderCommand cmd = DecoderCommand::NONE;
do {
if (cmd == DecoderCommand::SEEK) {
mpc_int64_t where = decoder_seek_where(mpd_decoder) *
audio_format.sample_rate;
mpc_int64_t where =
decoder_seek_where_frame(mpd_decoder);
bool success;
success = mpc_demux_seek_sample(demux, where)