Skip to content

Commit

Permalink
Merge pull request xbmc#25032 from sundermann/stereo-upmix
Browse files Browse the repository at this point in the history
[ffmpeg] Fix stereo upmixing
  • Loading branch information
sundermann authored Apr 21, 2024
2 parents bcf678b + f417b52 commit 39b72ae
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,21 +148,21 @@ bool CActiveAEResampleFFMPEG::Init(SampleConfig dstConfig, SampleConfig srcConfi
AVChannel outChan = av_channel_layout_channel_from_index(&dstChLayout, out);
switch (outChan)
{
case AV_CH_FRONT_LEFT:
case AV_CH_BACK_LEFT:
case AV_CH_SIDE_LEFT:
case AV_CHAN_FRONT_LEFT:
case AV_CHAN_BACK_LEFT:
case AV_CHAN_SIDE_LEFT:
m_rematrix[out][0] = 1.0;
break;
case AV_CH_FRONT_RIGHT:
case AV_CH_BACK_RIGHT:
case AV_CH_SIDE_RIGHT:
case AV_CHAN_FRONT_RIGHT:
case AV_CHAN_BACK_RIGHT:
case AV_CHAN_SIDE_RIGHT:
m_rematrix[out][1] = 1.0;
break;
case AV_CH_FRONT_CENTER:
case AV_CHAN_FRONT_CENTER:
m_rematrix[out][0] = 0.5;
m_rematrix[out][1] = 0.5;
break;
case AV_CH_LOW_FREQUENCY:
case AV_CHAN_LOW_FREQUENCY:
m_rematrix[out][0] = 0.5;
m_rematrix[out][1] = 0.5;
break;
Expand Down

0 comments on commit 39b72ae

Please sign in to comment.