mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1365872 - remove parsing mp4v mCodecSpecificConfig which is for b2g. r=jya
MozReview-Commit-ID: G3l6AtEH0hO --HG-- extra : rebase_source : bad9f7ae16715acb53826a494203cd7bbee138b3
This commit is contained in:
parent
86f4888c39
commit
55d6ddef12
@ -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);
|
||||
|
@ -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<const uint8_t*>(data);
|
||||
mCodecSpecificConfig->AppendElements(cdata, size);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user