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

Commit 612a7ad1 authored by Shalaj Jain's avatar Shalaj Jain Committed by Ricardo Cerqueira
Browse files

libstagefright: Adding support for k3g1, skm3 and mp41 major brands

This change adds support for ftyp's k3g1, skm3 and mp41 major brands in
the mp4 parser

Change-Id: I816f80ec1ab288df15a41116bb0b2fedd3b2f692
CRs-Fixed: 257978
parent 7e295a88
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2309,7 +2309,8 @@ static bool LegacySniffMPEG4(
        || !memcmp(header, "ftypM4A ", 8) || !memcmp(header, "ftypf4v ", 8)
        || !memcmp(header, "ftypkddi", 8) || !memcmp(header, "ftypM4VP", 8)
        || !memcmp(header, "ftypMSNV", 8) || !memcmp(header, "ftypavc1", 8)
        || !memcmp(header, "ftypmmp4", 8)) {
        || !memcmp(header, "ftypmmp4", 8) || !memcmp(header, "ftypk3g1", 8)
        || !memcmp(header, "ftypmp41", 8) || !memcmp(header, "ftypskm3", 8)) {
        *mimeType = MEDIA_MIMETYPE_CONTAINER_MPEG4;
        *confidence = 0.6;