Details
This patch adds parsing capability to read the AudioSpecificConfig data from
mp4, m4a files
This allows the component to configure the HW decoder correctly with
AudioObjectProfile and other
neccessary flags.

-/* lets pretend this is the data we got from the parser
- YOU MAY also change these values to test until the data is actually parsed
above */
- pComponentPrivate-&gt;aacParams-&gt;eAACProfile =
OMX_AUDIO_AACObjectLC;
- pComponentPrivate-&gt;aacParams-&gt;nSampleRate =
44100;
-
pComponentPrivate-&gt;AACDEC_UALGParam-&gt;lSamplingRateIdx =
AACDec_GetSampleRateIndexL(pComponentPrivate-&gt;aacParams-&gt;nSampleRate);
-
-/* were also going to force the codec to use RAW since we don't send the config
data onwards */
pComponentPrivate-&gt;AACDEC_UALGParam-&gt;bRawFormat = 1;

Details
This patch adds parsing capability to read the AudioSpecificConfig data from
mp4, m4a files
This allows the component to configure the HW decoder correctly with
AudioObjectProfile and other
neccessary flags.

-/* lets pretend this is the data we got from the parser
- YOU MAY also change these values to test until the data is actually parsed
above */
- pComponentPrivate-&gt;aacParams-&gt;eAACProfile =
OMX_AUDIO_AACObjectLC;
- pComponentPrivate-&gt;aacParams-&gt;nSampleRate =
44100;
-
pComponentPrivate-&gt;AACDEC_UALGParam-&gt;lSamplingRateIdx =
AACDec_GetSampleRateIndexL(pComponentPrivate-&gt;aacParams-&gt;nSampleRate);
-
-/* were also going to force the codec to use RAW since we don't send the config
data onwards */
pComponentPrivate-&gt;AACDEC_UALGParam-&gt;bRawFormat = 1;