diff options
author | Max Kellermann <max@duempel.org> | 2014-08-23 13:40:21 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-23 13:40:21 +0200 |
commit | 2335fdbb5ad98ef28df16a14e2fde53291bce8e4 (patch) | |
tree | 314013a2d55639514fe3251be1a610c6e610aa1d /src/decoder | |
parent | 1b6f7c3eb726046bb199a7cabad4ea32b09efddc (diff) | |
download | mpd-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')
-rw-r--r-- | src/decoder/plugins/DsfDecoderPlugin.cxx | 3 |
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; |