- default:
- if ((OMX_FF_INDEXTYPE)index == OMX_IndexParamAudioFFmpeg)
- {
- OMX_AUDIO_PARAM_FFMPEGTYPE *profile =
- (OMX_AUDIO_PARAM_FFMPEGTYPE *)params;
-
- if (profile->nPortIndex != kInputPortIndex) {
- return OMX_ErrorUndefined;
- }
-
- CHECK(!isConfigured());
-
-
- mCtx->codec_id = (enum AVCodecID)profile->eCodecId;
- mCtx->channels = profile->nChannels;
- mCtx->bit_rate = profile->nBitRate;
- mCtx->bits_per_coded_sample = profile->nBitsPerSample;
- mCtx->sample_rate = profile->nSampleRate;
- mCtx->block_align = profile->nBlockAlign;
- mCtx->sample_fmt = (AVSampleFormat)profile->eSampleFormat;
-
- adjustAudioParams();
-
- ALOGD("set OMX_IndexParamAudioFFmpeg, "
- "eCodecId:%ld(%s), nChannels:%lu, nBitRate:%lu, "
- "nBitsPerSample:%lu, nSampleRate:%lu, "
- "nBlockAlign:%lu, eSampleFormat:%lu(%s)",
- profile->eCodecId, avcodec_get_name(mCtx->codec_id),
- profile->nChannels, profile->nBitRate,
- profile->nBitsPerSample, profile->nSampleRate,
- profile->nBlockAlign, profile->eSampleFormat,
- av_get_sample_fmt_name(mCtx->sample_fmt));
-
- return OMX_ErrorNone;
+ case OMX_IndexParamAudioFFmpeg:
+ {
+ OMX_AUDIO_PARAM_FFMPEGTYPE *profile =
+ (OMX_AUDIO_PARAM_FFMPEGTYPE *)params;
+
+ if (profile->nPortIndex != kInputPortIndex) {
+ return OMX_ErrorUndefined;