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

Commit d334194a authored by Songyue Han's avatar Songyue Han Committed by Gerrit Code Review
Browse files

Merge "CodecCapabilities: Fix isFormatSupported function." into main

parents bc74e235 89a7c217
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)) ||