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

Commit ffa4ca79 authored by Andrew Lewis's avatar Andrew Lewis
Browse files

Ignore invalid profileLevelID

Fixes: 128321120
Test: build
Change-Id: I59286ac8e1f3c92995b078d3e73697c6d7eeb28a
parent 761bd495
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -112,7 +112,9 @@ static sp<ABuffer> MakeAVCCodecSpecificData(
    sp<ABuffer> profileLevelID = NULL;
    if (GetAttribute(params, "profile-level-id", &val)) {
        profileLevelID = decodeHex(val);
        CHECK_EQ(profileLevelID->size(), 3u);
        if (profileLevelID != NULL && profileLevelID->size() != 3u) {
            profileLevelID = NULL;
        }
    }

    Vector<sp<ABuffer> > paramSets;