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

Commit cba7671e authored by Aaron Huang's avatar Aaron Huang Committed by Gerrit Code Review
Browse files

Merge "Update language to comply with Android's inclusive language guidance"

parents c9f2c53a 6a3a302b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1911,10 +1911,10 @@ status_t convertMessageToMetaData(const sp<AMessage> &msg, sp<MetaData> &meta) {
        if (msg->findString("ts-schema", &tsSchema)) {
            unsigned int numLayers = 0;
            unsigned int numBLayers = 0;
            char dummy;
            char placeholder;
            int tags = sscanf(tsSchema.c_str(), "android.generic.%u%c%u%c",
                    &numLayers, &dummy, &numBLayers, &dummy);
            if ((tags == 1 || (tags == 3 && dummy == '+'))
                    &numLayers, &placeholder, &numBLayers, &placeholder);
            if ((tags == 1 || (tags == 3 && placeholder == '+'))
                    && numLayers > 0 && numLayers < UINT32_MAX - numBLayers
                    && numLayers + numBLayers <= INT32_MAX) {
                meta->setInt32(kKeyTemporalLayerCount, numLayers + numBLayers);