summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/odr-audioenc.cpp3
1 files changed, 2 insertions, 1 deletions
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 {