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

Commit ef50ba34 authored by Steve Kondik's avatar Steve Kondik
Browse files

stagefright: Fix HEVC in MKV for most clips

 * configurationVersion is not always correct for clips in the wild.

Change-Id: I628a8bcf47f372844f05f912ed66aea6dad0aa86
parent 821c298f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -853,7 +853,7 @@ 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) {  // configurationVersion == 1
            ALOGE("b/23680780");
            return BAD_VALUE;
        }