From: John Stebbins Date: Thu, 27 Dec 2018 19:04:00 +0000 (-0700) Subject: encavcodecaudio: fix AAC 5.1 encoding X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd4dc1dde6948389b0b7d98e501791a5ec6ec8c7;p=handbrake encavcodecaudio: fix AAC 5.1 encoding Use 5.1 back for AAC because 5.1 side uses a not-so-universally supported feature to signal the non-standard layout Fixes https://github.com/HandBrake/HandBrake/issues/1744 --- diff --git a/libhb/encavcodecaudio.c b/libhb/encavcodecaudio.c index a2152d0ff..7c7cbd361 100644 --- a/libhb/encavcodecaudio.c +++ b/libhb/encavcodecaudio.c @@ -105,6 +105,11 @@ static int encavcodecaInit(hb_work_object_t *w, hb_job_t *job) case HB_ACODEC_FFAAC: codec_name = "aac"; + // Use 5.1 back for AAC because 5.1 side uses a + // not-so-universally supported feature to signal the + // non-standard layout + if (channel_layout == AV_CH_LAYOUT_5POINT1) + channel_layout = AV_CH_LAYOUT_5POINT1_BACK; break; case HB_ACODEC_FFFLAC: