Commit 3e91dcf9 authored by Martin Storsjö's avatar Martin Storsjö

omxil: Set OMX_AUDIO_AACStreamFormatMP4FF for AAC

This does work with the Samsung AAC decoder (which seems to support
both), while the google SW AAC decoder doesn't support the previous
value (but works fine with this one).

As far as I can read the specs, the two formats are identical (one
is defined as "AAC inside MPEG-4/ISO File Format" while the other
one is defined as "AAC Raw Format (access units)").

The Android media stack seems to be using this one internally
(with a bunch of references to this one, and no references to the
RAW one), which is a good indication that at least most android
AAC decoders should be able to handle it.
Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 4250b38c
......@@ -667,7 +667,7 @@ OMX_ERRORTYPE SetAudioParameters(OMX_HANDLETYPE handle,
param->aac.nAACtools = OMX_AUDIO_AACToolAll;
param->aac.nAACERtools = OMX_AUDIO_AACERAll;
param->aac.eAACProfile = OMX_AUDIO_AACObjectLC;
param->aac.eAACStreamFormat = OMX_AUDIO_AACStreamFormatRAW;
param->aac.eAACStreamFormat = OMX_AUDIO_AACStreamFormatMP4FF;
param->aac.eChannelMode = i_channels > 1 ?
OMX_AUDIO_ChannelModeStereo : OMX_AUDIO_ChannelModeMono;
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