summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-09-11 11:32:29 -0700
committerJohn Stebbins <[email protected]>2016-09-11 11:32:29 -0700
commite4192ff0dbc6a825a61e48d93418f3eb200b931f (patch)
tree02b65c21691afb68860965dd87cde508374438fc /libhb
parentcc9af942f0eff3cabe2cd9fe5508fad8202b82d6 (diff)
opus: fix 5.1 encoding
Diffstat (limited to 'libhb')
-rw-r--r--libhb/encavcodecaudio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/encavcodecaudio.c b/libhb/encavcodecaudio.c
index 73d44a25c..b66a86ffa 100644
--- a/libhb/encavcodecaudio.c
+++ b/libhb/encavcodecaudio.c
@@ -127,6 +127,10 @@ static int encavcodecaInit(hb_work_object_t *w, hb_job_t *job)
case HB_ACODEC_OPUS:
codec_name = "libopus";
+ // Libav's libfdk-aac wrapper expects back channels for 5.1
+ // audio, and will error out unless we translate the layout
+ if (channel_layout == AV_CH_LAYOUT_5POINT1)
+ channel_layout = AV_CH_LAYOUT_5POINT1_BACK;
break;
default: