aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-23 13:40:21 +0200
committerMax Kellermann <max@duempel.org>2014-08-23 13:40:21 +0200
commit2335fdbb5ad98ef28df16a14e2fde53291bce8e4 (patch)
tree314013a2d55639514fe3251be1a610c6e610aa1d /src/decoder/plugins
parent1b6f7c3eb726046bb199a7cabad4ea32b09efddc (diff)
downloadmpd-2335fdbb5ad98ef28df16a14e2fde53291bce8e4.tar.gz
mpd-2335fdbb5ad98ef28df16a14e2fde53291bce8e4.tar.xz
mpd-2335fdbb5ad98ef28df16a14e2fde53291bce8e4.zip
decoder/dsf: allow channel setups other than stereo
This finishes the multi-channel support. Development of the feature was started with commit 02cc77cd8
Diffstat (limited to 'src/decoder/plugins')
-rw-r--r--src/decoder/plugins/DsfDecoderPlugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder/plugins/DsfDecoderPlugin.cxx b/src/decoder/plugins/DsfDecoderPlugin.cxx
index d150d8146..9791c4fda 100644
--- a/src/decoder/plugins/DsfDecoderPlugin.cxx
+++ b/src/decoder/plugins/DsfDecoderPlugin.cxx
@@ -134,8 +134,7 @@ dsf_read_metadata(Decoder *decoder, InputStream &is,
if (FromLE32(dsf_fmt_chunk.version) != 1 ||
FromLE32(dsf_fmt_chunk.formatid) != 0 ||
- FromLE32(dsf_fmt_chunk.channeltype) != 2 ||
- channels != 2 ||
+ !audio_valid_channel_count(channels) ||
!dsdlib_valid_freq(samplefreq))
return false;