Skip to content

Commit

Permalink
encavcodecaudio: set opus mapping_family option to 1 when there are m…
Browse files Browse the repository at this point in the history
…ore than two channels. Fix #5847.
  • Loading branch information
galad87 committed Apr 6, 2024
1 parent bc7a632 commit 8a08478
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libhb/encavcodecaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ static int encavcodecaInit(hb_work_object_t *w, hb_job_t *job)
// audio, and will error out unless we translate the layout
if (channel_layout == AV_CH_LAYOUT_5POINT1)
channel_layout = AV_CH_LAYOUT_5POINT1_BACK;
if (hb_layout_get_discrete_channel_count(channel_layout) > 2)
av_dict_set(&av_opts, "mapping_family", "1", 0);
break;

default:
Expand Down

0 comments on commit 8a08478

Please sign in to comment.