diff --git a/dom/media/platforms/omx/OmxDataDecoder.cpp b/dom/media/platforms/omx/OmxDataDecoder.cpp index b64917688e4d..011e23cc861e 100644 --- a/dom/media/platforms/omx/OmxDataDecoder.cpp +++ b/dom/media/platforms/omx/OmxDataDecoder.cpp @@ -609,7 +609,7 @@ OmxDataDecoder::FillCodecConfigDataToOmx() if (mTrackInfo->IsAudio()) { csc = mTrackInfo->GetAsAudioInfo()->mCodecSpecificConfig; } else if (mTrackInfo->IsVideo()) { - csc = mTrackInfo->GetAsVideoInfo()->mCodecSpecificConfig; + csc = mTrackInfo->GetAsVideoInfo()->mExtraData; } MOZ_RELEASE_ASSERT(csc); diff --git a/media/libstagefright/binding/DecoderData.cpp b/media/libstagefright/binding/DecoderData.cpp index eb3c6e04af54..b2ee8c942611 100644 --- a/media/libstagefright/binding/DecoderData.cpp +++ b/media/libstagefright/binding/DecoderData.cpp @@ -175,19 +175,6 @@ MP4VideoInfo::Update(const MetaData* aMetaData, const char* aMimeType) mRotation = VideoInfo::ToSupportedRotation(FindInt32(aMetaData, kKeyRotation)); FindData(aMetaData, kKeyAVCC, mExtraData); - if (!mExtraData->Length()) { - if (FindData(aMetaData, kKeyESDS, mExtraData)) { - ESDS esds(mExtraData->Elements(), mExtraData->Length()); - - const void* data; - size_t size; - if (esds.getCodecSpecificInfo(&data, &size) == OK) { - const uint8_t* cdata = reinterpret_cast(data); - mCodecSpecificConfig->AppendElements(cdata, size); - } - } - } - } static void