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

Commit 9ab58b15 authored by Iris Chang's avatar Iris Chang Committed by android-build-merger
Browse files

Merge "Support mkv whose hevc configurationVersion is not 1" into qt-dev

am: 5d50097e

Change-Id: I5569743148639bd170cad42a5bb81a31ae1e5387
parents 5530fe67 5d50097e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1101,7 +1101,9 @@ status_t convertMetaDataToMessage(
    } else if (meta->findData(kKeyHVCC, &type, &data, &size)) {
        const uint8_t *ptr = (const uint8_t *)data;

        if (size < 23 || ptr[0] != 1) {  // configurationVersion == 1
        if (size < 23 || (ptr[0] != 1 && ptr[0] != 0)) {
            // configurationVersion == 1 or 0
            // 1 is what the standard dictates, but some old muxers may have used 0.
            ALOGE("b/23680780");
            return BAD_VALUE;
        }