Skip to content

Commit

Permalink
libstagefright : Fix to support AVC1 and MSNV file types
Browse files Browse the repository at this point in the history
-Add Support for AVC1 and MSNV file types in SniffMPEG4
 function
-Function returns true if the header contains one of these
 filetypes

Change-Id: I6d14f4fef0837b2f6d07ffa2f013616ebb76a085
  • Loading branch information
Shalaj Jain authored and Faryaab committed Apr 8, 2012
1 parent eec045d commit c9090b4
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 @@ -2261,7 +2261,8 @@ static bool LegacySniffMPEG4(
|| !memcmp(header, "ftyp3ge6", 8) || !memcmp(header, "ftyp3gg6", 8)
|| !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, "ftypkddi", 8) || !memcmp(header, "ftypM4VP", 8)
|| !memcmp(header, "ftypMSNV", 8) || !memcmp(header, "ftypavc1", 8)) {
*mimeType = MEDIA_MIMETYPE_CONTAINER_MPEG4;
*confidence = 0.4;

Expand Down

0 comments on commit c9090b4

Please sign in to comment.