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

Commit a1a3d48f authored by Wonsik Kim's avatar Wonsik Kim Committed by Automerger Merge Worker
Browse files

Merge "CCodecConfig: Remove SBR mode from SDK message when it is set to auto" am: f81e44f2

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

Change-Id: Idc9d102d5b7b6753ae74dc1ed9761fe490309bd5
parents b8ef07b4 f81e44f2
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1333,6 +1333,14 @@ sp<AMessage> CCodecConfig::getFormatForDomain(
        }
    }

    // Remove KEY_AAC_SBR_MODE from SDK message if it is outside supported range
    // as SDK doesn't have a way to signal default sbr mode based on profile and
    // requires that the key isn't present in format to signal that
    int sbrMode;
    if (msg->findInt32(KEY_AAC_SBR_MODE, &sbrMode) && (sbrMode < 0 || sbrMode > 2)) {
        msg->removeEntryAt(msg->findEntryByName(KEY_AAC_SBR_MODE));
    }

    { // convert color info
        // move default color to color aspect if not read from the component
        int32_t tmp;