From 29c75250c58bdcc3b38513813ba521cba82d5c61 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Thu, 19 Nov 2015 00:29:37 -0800 Subject: stagefright: Welcome to my nightmare, act IV * Standardize parameter names, clean up stub calls * Attempting to make QC's blob work. We've entered our last days on earth. All is lost, all is lost. Change-Id: Idef9aad100f414e64a737e0f0a8c9c112ad4cb46 --- media/libstagefright/FFMPEGSoftCodec.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'media/libstagefright/FFMPEGSoftCodec.cpp') diff --git a/media/libstagefright/FFMPEGSoftCodec.cpp b/media/libstagefright/FFMPEGSoftCodec.cpp index 5c6a8ed..6b12a41 100644 --- a/media/libstagefright/FFMPEGSoftCodec.cpp +++ b/media/libstagefright/FFMPEGSoftCodec.cpp @@ -53,7 +53,7 @@ static const MetaKeyEntry MetaKeyTable[] { {kKeyAACAOT , "aac-profile" , INT32}, {kKeyArbitraryMode , "use-arbitrary-mode" , INT32}, {kKeyBitRate , "bitrate" , INT32}, - {kKeyBitsPerSample , "bit-width" , INT32}, + {kKeyBitsPerSample , "bits-per-sample" , INT32}, {kKeyBlockAlign , "block-align" , INT32}, {kKeyChannelCount , "channel-count" , INT32}, {kKeyCodecId , "codec-id" , INT32}, @@ -404,7 +404,7 @@ status_t FFMPEGSoftCodec::getAudioPortFormat(OMX_U32 portIndex, int coding, notify->setString("mime", MEDIA_MIMETYPE_AUDIO_APE); notify->setInt32("channel-count", params.nChannels); notify->setInt32("sample-rate", params.nSamplingRate); - notify->setInt32("bit-width", params.nBitsPerSample); + notify->setInt32("bits-per-sample", params.nBitsPerSample); break; } case OMX_AUDIO_CodingFLAC: @@ -422,7 +422,7 @@ status_t FFMPEGSoftCodec::getAudioPortFormat(OMX_U32 portIndex, int coding, notify->setString("mime", MEDIA_MIMETYPE_AUDIO_FLAC); notify->setInt32("channel-count", params.nChannels); notify->setInt32("sample-rate", params.nSampleRate); - notify->setInt32("bit-width", params.nCompressionLevel); // piggyback + notify->setInt32("bits-per-sample", params.nCompressionLevel); // piggyback break; } @@ -821,7 +821,7 @@ status_t FFMPEGSoftCodec::setWMAFormat( // mm-parser may want a different bit depth if (msg->findInt32(getMsgKey(kKeyWMABitspersample), &bitsPerSample)) { - msg->setInt32("bit-width", bitsPerSample); + msg->setInt32("bits-per-sample", bitsPerSample); } ALOGV("Channels: %d, SampleRate: %d, BitRate: %d, blockAlign: %d", -- cgit v1.1