Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 969951fe authored by Chuangjie Xia's avatar Chuangjie Xia Committed by Automerger Merge Worker
Browse files

Delete an uninitialized object in AACExtractor am: 19e92b5b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/12061463

Change-Id: Ied8c7a5d74ebb8421c5ff1bf5ad7ae18af6d3cdc
parents 930d2d7f 19e92b5b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -132,6 +132,7 @@ static size_t getAdtsFrameLength(DataSourceHelper *source, off64_t offset, size_
AACExtractor::AACExtractor(
        DataSourceHelper *source, off64_t offset)
    : mDataSource(source),
      mMeta(nullptr),
      mInitCheck(NO_INIT),
      mFrameDurationUs(0) {

@@ -180,8 +181,10 @@ AACExtractor::AACExtractor(
}

AACExtractor::~AACExtractor() {
    if (mMeta != nullptr) {
        AMediaFormat_delete(mMeta);
    }
}

media_status_t AACExtractor::getMetaData(AMediaFormat *meta) {
    AMediaFormat_clear(meta);