Skip to content

Commit

Permalink
Avoid hardcoding channel layouts in the fallback code
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevcairiel committed Aug 23, 2022
1 parent 4528c18 commit 9c30b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decoder/LAVAudio/LAVAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2778,7 +2778,7 @@ HRESULT CLAVAudio::Deliver(BufferDetails &buffer)
}
else
{
dwChannelMask = wChannels == 2 ? (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT) : SPEAKER_FRONT_CENTER;
dwChannelMask = get_channel_mask(wChannels);
}
if (buffer.layout.nb_channels != wfeCurrent->nChannels || buffer.layout.u.mask != dwChannelMask)
{
Expand Down

0 comments on commit 9c30b15

Please sign in to comment.