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

Commit 7e295a88 authored by Shalaj Jain's avatar Shalaj Jain Committed by Ricardo Cerqueira
Browse files

libstagefright : Fix to support mmp4 file type

-Add Support for mmp4 file type in SniffMPEG4 function.
-Function returns true if the header contains one of these
 filetypes.

Change-Id: I3f88b4b34f9c79c7e3172e813751bcf1c18ad58a
CRs-Fixed: 253907
parent e023348f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2308,7 +2308,8 @@ static bool LegacySniffMPEG4(
        || !memcmp(header, "ftypisom", 8) || !memcmp(header, "ftypM4V ", 8)
        || !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, "ftypMSNV", 8) || !memcmp(header, "ftypavc1", 8)
        || !memcmp(header, "ftypmmp4", 8)) {
        *mimeType = MEDIA_MIMETYPE_CONTAINER_MPEG4;
        *confidence = 0.6;