Skip to content

Commit

Permalink
libstagefright : Fix to support mmp4 file type
Browse files Browse the repository at this point in the history
-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
  • Loading branch information
Shalaj Jain authored and Faryaab committed Apr 8, 2012
1 parent c9090b4 commit d163ca3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion media/libstagefright/MPEG4Extractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2262,7 +2262,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.4;

Expand Down

0 comments on commit d163ca3

Please sign in to comment.