From 051e526b2c59f1f6201d26128bb0fead189de9eb Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 26 Oct 2019 23:27:05 +0200 Subject: [PATCH] [pipe] Disallow 24 bit input, doesn't work currently If 24 bit input needs to be transcoded, like it will for AirPlay, it will fail in transcode.c, because XCODE_PCM24 actually produces 4-byte samples. --- src/inputs/pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inputs/pipe.c b/src/inputs/pipe.c index 7755ddd1..03c26134 100644 --- a/src/inputs/pipe.c +++ b/src/inputs/pipe.c @@ -1054,7 +1054,7 @@ init(void) } pipe_bits_per_sample = cfg_getint(cfg_getsec(cfg, "library"), "pipe_bits_per_sample"); - if (pipe_bits_per_sample != 16 && pipe_bits_per_sample != 24 && pipe_bits_per_sample != 32) + if (pipe_bits_per_sample != 16 && pipe_bits_per_sample != 32) { DPRINTF(E_FATAL, L_PLAYER, "The configuration of pipe_bits_per_sample is invalid: %d\n", pipe_bits_per_sample); return -1;