From: John Stebbins Date: Sun, 11 Sep 2016 18:32:29 +0000 (-0700) Subject: opus: fix 5.1 encoding X-Git-Tag: 1.0.0~225 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4192ff0dbc6a825a61e48d93418f3eb200b931f;p=handbrake opus: fix 5.1 encoding --- 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: