aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/plugins
diff options
context:
space:
mode:
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;