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.
This commit is contained in:
Max Kellermann 2016-12-09 21:23:38 +01:00
parent be8297d6f6
commit 98a241a730

View File

@ -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