Skip to content

Commit 465d42e

Browse files
theandi666Android (Google) Code Review
authored andcommitted
Merge "Increase the avi extractor's confidence slighly over mp3's"
2 parents fc7a808 + f8c84b3 commit 465d42e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

media/libstagefright/AVIExtractor.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,11 @@ bool SniffAVI(
911911

912912
if (!memcmp(tmp, "RIFF", 4) && !memcmp(&tmp[8], "AVI ", 4)) {
913913
mimeType->setTo(MEDIA_MIMETYPE_CONTAINER_AVI);
914-
*confidence = 0.2;
914+
915+
// Just a tad over the mp3 extractor's confidence, since
916+
// these .avi files may contain .mp3 content that otherwise would
917+
// mistakenly lead to us identifying the entire file as a .mp3 file.
918+
*confidence = 0.21;
915919

916920
return true;
917921
}

0 commit comments

Comments
 (0)