From b68380ba3c00f6db0d60ec5fe9ec72bb230ea7ad Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 10 Aug 2017 10:48:37 +0200 Subject: Fix AOT selection in mono --- src/odr-audioenc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/odr-audioenc.cpp') diff --git a/src/odr-audioenc.cpp b/src/odr-audioenc.cpp index ff743bb..dcb8686 100644 --- a/src/odr-audioenc.cpp +++ b/src/odr-audioenc.cpp @@ -231,7 +231,8 @@ static int prepare_aac_encoder( if(channels == 2 && subchannel_index <= 6) { *aot = AOT_DABPLUS_PS; } - else if((channels == 1 && subchannel_index <= 8) || subchannel_index <= 10) { + else if((channels == 1 && subchannel_index <= 8) || + (channels == 2 && subchannel_index <= 10)) { *aot = AOT_DABPLUS_SBR; } else { -- cgit v1.2.3