aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio_parser.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-21 19:37:33 +0100
committerMax Kellermann <max@duempel.org>2012-03-22 00:42:12 +0100
commitb99ecb4dc96f45c0e0ca4b47b82efea57a21f016 (patch)
treec3cf9e67fa24bfb8f0f82010c05fa1f5aead67aa /src/audio_parser.c
parent208a96b211e433a7064bdaa40b31f6a61bb60419 (diff)
downloadmpd-b99ecb4dc96f45c0e0ca4b47b82efea57a21f016.tar.gz
mpd-b99ecb4dc96f45c0e0ca4b47b82efea57a21f016.tar.xz
mpd-b99ecb4dc96f45c0e0ca4b47b82efea57a21f016.zip
audio_format: remove the packed S24 format
For simplicity, the MPD core should not have to deal with packing. It is rarely used, and those plugins that need it should use the pcm_export library instead.
Diffstat (limited to '')
-rw-r--r--src/audio_parser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/audio_parser.c b/src/audio_parser.c
index d2d8dc950..d5a3eb97e 100644
--- a/src/audio_parser.c
+++ b/src/audio_parser.c
@@ -116,11 +116,11 @@ parse_sample_format(const char *src, bool mask,
break;
case 24:
- if (memcmp(endptr, "_3", 2) == 0) {
- sample_format = SAMPLE_FORMAT_S24;
+ if (memcmp(endptr, "_3", 2) == 0)
+ /* for backwards compatibility */
endptr += 2;
- } else
- sample_format = SAMPLE_FORMAT_S24_P32;
+
+ sample_format = SAMPLE_FORMAT_S24_P32;
break;
case 32: