Skip to content

Commit

Permalink
AE: fix re-mappng issue
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta authored and popcornmix committed Feb 20, 2016
1 parent 158d178 commit e487a1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
Expand Up @@ -1248,6 +1248,11 @@ void CActiveAE::Configure(AEAudioFormat *desiredFmt)
outputFormat.m_channelLayout.ResolveChannels(m_sinkFormat.m_channelLayout);
}

// internally we use ffmpeg layouts, means that layout won't change in resample
// stage. preserve correct layout for sink stage where remapping is done
uint64_t avlayout = CAEUtil::GetAVChannelLayout(outputFormat.m_channelLayout);
outputFormat.m_channelLayout = CAEUtil::GetAEChannelLayout(avlayout);

// TODO: adjust to decoder
sinkInputFormat = outputFormat;
}
Expand Down

0 comments on commit e487a1a

Please sign in to comment.