Skip to contentSkip to conversation

sbcenc: Remove duplicate check for num of channels

PATCH Applied Pali Rohár 2 participants 2 messages Aug 8, 2020 – Aug 11, 2020 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sbcenc: Remove duplicate check for num of channels

---
 src/sbcenc.c | 1 -
 1 file changed, 1 deletion(-)
src/sbcenc.c +0 -1
index 2a4c240..6f8d794 100644
@@ -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");
Signature · 1 line
2.20.1
maintainer Applied
#1 lore raw

Hi Pali,

Quoted 19 lines · Pali Rohár
---
 src/sbcenc.c | 1 -
 1 file changed, 1 deletion(-)
src/sbcenc.c +0 -2
index 2a4c240..6f8d794 100644
@@ -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");
--
Quoted 1 line

2.20.1

Applied, thanks.

Signature · 1 line
Luiz Augusto von Dentz