Skip to content

Commit

Permalink
audio_resample: use the correct option for the stereo layout
Browse files Browse the repository at this point in the history
I copied & pasted the wrong define when I previously updated it to use the new AVChannelLayout api.
  • Loading branch information
galad87 committed Sep 24, 2024
1 parent 402dd3f commit ea7980f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libhb/audio_resample.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void hb_audio_resample_set_ch_layout(hb_audio_resample_t *resample,
if (av_channel_layout_compare(ch_layout, &stereo_dowmix) == 0)
{
// Dolby Surround is Stereo when it comes to remixing
AVChannelLayout stereo = AV_CHANNEL_LAYOUT_STEREO_DOWNMIX;
AVChannelLayout stereo = AV_CHANNEL_LAYOUT_STEREO;
av_channel_layout_copy(&resample->in.ch_layout, &stereo);
}
// swresample can't remap a single-channel layout to
Expand Down

0 comments on commit ea7980f

Please sign in to comment.