From 98a241a730d857fd70e84b083d709363d2221e2e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 9 Dec 2016 21:23:38 +0100 Subject: [PATCH] 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. --- src/decoder/plugins/WavpackDecoderPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decoder/plugins/WavpackDecoderPlugin.cxx b/src/decoder/plugins/WavpackDecoderPlugin.cxx index b31e6cd70..917f9dd8a 100644 --- a/src/decoder/plugins/WavpackDecoderPlugin.cxx +++ b/src/decoder/plugins/WavpackDecoderPlugin.cxx @@ -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