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:
parent
be8297d6f6
commit
98a241a730
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user