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

Commit 89a7c217 authored by Songyue Han's avatar Songyue Han
Browse files

CodecCapabilities: Fix isFormatSupported function.

Test: CtsMediaDecoderTestCases
Bug: 385023849
Change-Id: I5098754f4b8d5d5330427804e1de973ef5bc78fe
parent bc74e235
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ bool CodecCapabilities::isFormatSupported(const sp<AMessage> &format) const {
        int32_t yesNo;
        std::string key = KEY_FEATURE_;
        key = key + feat.mName;
        if (format->findInt32(key.c_str(), &yesNo)) {
        if (!format->findInt32(key.c_str(), &yesNo)) {
            continue;
        }
        if ((yesNo == 1 && !isFeatureSupported(feat.mName)) ||