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
(cherry picked from commit
bd4dc1dde6948389b0b7d98e501791a5ec6ec8c7)
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: