Commit 0a6f4048 authored by Max Kellermann's avatar Max Kellermann

mpc: don't assume the stream is stereo

Don't hard-code the factor "2".
parent 8d1ffb16
......@@ -184,8 +184,7 @@ mpc_decode(struct decoder *mpd_decoder, struct input_stream *inStream)
samplePos += ret;
/* ret is in samples, and we have stereo */
ret *= 2;
ret *= info.channels;
mpc_to_mpd_buffer(chunk, sample_buffer, ret);
......
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