Skip to content

Commit

Permalink
[pipe] Disallow 24 bit input, doesn't work currently
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ejurgensen committed Oct 26, 2019
1 parent 85ab7c3 commit 051e526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inputs/pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 051e526

Please sign in to comment.