diff options
author | John Stebbins <[email protected]> | 2018-12-27 12:04:00 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2018-12-27 12:05:24 -0700 |
commit | bd4dc1dde6948389b0b7d98e501791a5ec6ec8c7 (patch) | |
tree | 6897443c027d5faa7e126aa7517a0abc8e471394 /libhb | |
parent | 87aca54434905b1b8f5ab50e5a7c263cc1de15b6 (diff) |
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
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/encavcodecaudio.c | 5 |
1 files changed, 5 insertions, 0 deletions
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: |