diff options
author | Jurgen Kramer <gtmkramer@xs4all.nl> | 2014-07-04 14:15:09 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-16 18:40:53 +0200 |
commit | 9b9d189a333705818783e51da10d21511379124f (patch) | |
tree | becd8f1e7d541e93d504f1779a0dd221064cdec4 /src/decoder/plugins/DsfDecoderPlugin.cxx | |
parent | 7c3af4f56f7171aacbe9bd26f2b30bb4f94e88f2 (diff) | |
download | mpd-9b9d189a333705818783e51da10d21511379124f.tar.gz mpd-9b9d189a333705818783e51da10d21511379124f.tar.xz mpd-9b9d189a333705818783e51da10d21511379124f.zip |
decoder/dsf: Allow up to DSD512. Enable DSD rates based on Fs=48kHz
Diffstat (limited to '')
-rw-r--r-- | src/decoder/plugins/DsfDecoderPlugin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/plugins/DsfDecoderPlugin.cxx b/src/decoder/plugins/DsfDecoderPlugin.cxx index dc94d149c..94c25247d 100644 --- a/src/decoder/plugins/DsfDecoderPlugin.cxx +++ b/src/decoder/plugins/DsfDecoderPlugin.cxx @@ -131,7 +131,7 @@ dsf_read_metadata(Decoder *decoder, InputStream &is, if (dsf_fmt_chunk.version != 1 || dsf_fmt_chunk.formatid != 0 || dsf_fmt_chunk.channeltype != 2 || dsf_fmt_chunk.channelnum != 2 - || (samplefreq != 2822400 && samplefreq != 5644800)) + || (!dsdlib_valid_freq(samplefreq))) return false; uint32_t chblksize = FromLE32(dsf_fmt_chunk.block_size); |