Commit 7f4f8b7c authored by Max Kellermann's avatar Max Kellermann

decoder/mpcdec: use integer seek times

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