Commit 98a241a7 authored by Max Kellermann's avatar Max Kellermann

decoder/wavpack: use WavpackGetReducedChannels()

Since we don't use OPEN_2CH_MAX, this should be equal to WavpackGetNumChannels() - but who knows, maybe a future libWavPack version breaks this assumption.
parent be8297d6
......@@ -151,7 +151,7 @@ wavpack_decode(DecoderClient &client, WavpackContext *wpc, bool can_seek)
auto audio_format = CheckAudioFormat(WavpackGetSampleRate(wpc),
sample_format,
WavpackGetNumChannels(wpc));
WavpackGetReducedChannels(wpc));
const format_samples_t format_samples = is_float
? format_samples_float
......
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