summaryrefslogtreecommitdiffstats
path: root/libAACenc/src/aacenc_lib.cpp
diff options
context:
space:
mode:
authorSergio Ammirata <sergio@ammirata.net>2012-10-04 15:51:05 -0400
committerMartin Storsjo <martin@martin.st>2012-10-05 12:17:37 +0300
commit790bf9f088f8960b62d189eb44322d078109f272 (patch)
tree35757a4b7d1b112cb2a6f4c0ce6acda178781c6b /libAACenc/src/aacenc_lib.cpp
parente79b172ba6f62855b7d5d5b86cd3c118be8750ea (diff)
downloadfdk-aac-dabplus-790bf9f088f8960b62d189eb44322d078109f272.tar.gz
fdk-aac-dabplus-790bf9f088f8960b62d189eb44322d078109f272.tar.bz2
fdk-aac-dabplus-790bf9f088f8960b62d189eb44322d078109f272.zip
Add support for Workgroup 4 (WG4) channel mapping
This is the channel ordering used in DVD Audio, and is the standard used internally in the VLC media player.
Diffstat (limited to 'libAACenc/src/aacenc_lib.cpp')
-rw-r--r--libAACenc/src/aacenc_lib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libAACenc/src/aacenc_lib.cpp b/libAACenc/src/aacenc_lib.cpp
index 6cd1f80..9647094 100644
--- a/libAACenc/src/aacenc_lib.cpp
+++ b/libAACenc/src/aacenc_lib.cpp
@@ -1657,7 +1657,7 @@ AACENC_ERROR aacEncoder_SetParam(
break;
case AACENC_CHANNELORDER:
if (hAacEncoder->aacConfig.channelOrder != (CHANNEL_ORDER)value) {
- if (! ((value==0) || (value==1)) ) {
+ if (! ((value==0) || (value==1) || (value==2)) ) {
err = AACENC_INVALID_CONFIG;
break;
}