diff mbox series

sbcenc: Remove duplicate check for num of channels

Message ID 20200808193026.29007-1-pali@kernel.org (mailing list archive)
State New, archived
Headers show
Series sbcenc: Remove duplicate check for num of channels | expand

Commit Message

Pali Rohár Aug. 8, 2020, 7:30 p.m. UTC
Signed-off-by: Pali Rohár <pali@kernel.org>
---
 src/sbcenc.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Luiz Augusto von Dentz Aug. 11, 2020, 6:29 p.m. UTC | #1
Hi Pali,

On Sat, Aug 8, 2020 at 12:34 PM Pali Rohár <pali@kernel.org> wrote:
>
> Signed-off-by: Pali Rohár <pali@kernel.org>
> ---
>  src/sbcenc.c | 1 -
>  1 file changed, 1 deletion(-)
>
> 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");
> --
> 2.20.1

Applied, thanks.
diff mbox series

Patch

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");