[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.
This commit is contained in:
ejurgensen 2019-10-26 23:27:05 +02:00
parent 85ab7c3057
commit 051e526b2c

View File

@ -1054,7 +1054,7 @@ init(void)
} }
pipe_bits_per_sample = cfg_getint(cfg_getsec(cfg, "library"), "pipe_bits_per_sample"); 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); DPRINTF(E_FATAL, L_PLAYER, "The configuration of pipe_bits_per_sample is invalid: %d\n", pipe_bits_per_sample);
return -1; return -1;