From bd4dc1dde6948389b0b7d98e501791a5ec6ec8c7 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Thu, 27 Dec 2018 12:04:00 -0700 Subject: 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 --- libhb/encavcodecaudio.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libhb') 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: -- cgit v1.2.3