Commit 4250b38c authored by Martin Storsjö's avatar Martin Storsjö

omxil: Set the right channel mode for aac/mp3

This doesn't seem to have any effect in practice, but it does make
the code more correct.
Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 74e85f40
......@@ -668,7 +668,7 @@ OMX_ERRORTYPE SetAudioParameters(OMX_HANDLETYPE handle,
param->aac.nAACERtools = OMX_AUDIO_AACERAll;
param->aac.eAACProfile = OMX_AUDIO_AACObjectLC;
param->aac.eAACStreamFormat = OMX_AUDIO_AACStreamFormatRAW;
param->aac.eChannelMode = i_channels ?
param->aac.eChannelMode = i_channels > 1 ?
OMX_AUDIO_ChannelModeStereo : OMX_AUDIO_ChannelModeMono;
break;
case OMX_AUDIO_CodingMP3:
......@@ -676,7 +676,7 @@ OMX_ERRORTYPE SetAudioParameters(OMX_HANDLETYPE handle,
param->mp3.nChannels = i_channels;
param->mp3.nSampleRate = i_samplerate;
param->mp3.nBitRate = i_bitrate;
param->mp3.eChannelMode = i_channels ?
param->mp3.eChannelMode = i_channels > 1 ?
OMX_AUDIO_ChannelModeStereo : OMX_AUDIO_ChannelModeMono;
param->mp3.eFormat = OMX_AUDIO_MP3StreamFormatMP1Layer3;
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment