summaryrefslogtreecommitdiffstats
path: root/src/odr-audioenc.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-10 10:48:37 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-10 10:48:37 +0200
commitb68380ba3c00f6db0d60ec5fe9ec72bb230ea7ad (patch)
tree16f649a776021e1215bb6646ce6104f221d1de8c /src/odr-audioenc.cpp
parentb25021100436ada451cdd22e5a4d9a644d2bc3d7 (diff)
downloadODR-AudioEnc-b68380ba3c00f6db0d60ec5fe9ec72bb230ea7ad.tar.gz
ODR-AudioEnc-b68380ba3c00f6db0d60ec5fe9ec72bb230ea7ad.tar.bz2
ODR-AudioEnc-b68380ba3c00f6db0d60ec5fe9ec72bb230ea7ad.zip
Fix AOT selection in mono
Diffstat (limited to 'src/odr-audioenc.cpp')
-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 {