summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2020-08-08 21:30:26 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-08-11 11:21:48 -0700
commitb606dcb6f28b309fafcb74056a7473bd18ddb42f (patch)
treeabac4513e51bb429284f370ec9143bd55bd2933e
parenta59baf862ce3df1fd044a2f455dbaf1f9ff729c9 (diff)
downloadsbc-b606dcb6f28b309fafcb74056a7473bd18ddb42f.tar.gz
sbcenc: Remove duplicate check for num of channels
-rw-r--r--src/sbcenc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/sbcenc.c b/src/sbcenc.c
index 2a4c240..6f8d794 100644
--- a/src/sbcenc.c
+++ b/src/sbcenc.c
@@ -142,7 +142,6 @@ static void encode(char *filename, int subbands, int bitpool, int joint,
blocks == 12 ? SBC_BLK_12 : SBC_BLK_16;
} else {
if (BE_INT(au_hdr.sample_rate) != 16000 ||
- BE_INT(au_hdr.channels) != 1 ||
BE_INT(au_hdr.channels) != 1) {
fprintf(stderr, "mSBC requires 16 bits, 16kHz, mono "
"input\n");