summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Andreas Huber <andih@google.com> 2011-09-12 13:59:11 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2011-09-12 13:59:11 -0700
commit465d42ef781db15a603427115bd66341eb907c31 (patch)
tree80fa3ea55f329d7d788911a1cc371d729c1b9c83
parentfc7a8081f8d9ca3c2891d3c2d748dc26f8139ed6 (diff)
parentf8c84b343488c29cc6ef224a7df751c94955e029 (diff)
Merge "Increase the avi extractor's confidence slighly over mp3's"
-rw-r--r--media/libstagefright/AVIExtractor.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/media/libstagefright/AVIExtractor.cpp b/media/libstagefright/AVIExtractor.cpp
index 6313ca38a93d..62d17dabb1f4 100644
--- a/media/libstagefright/AVIExtractor.cpp
+++ b/media/libstagefright/AVIExtractor.cpp
@@ -911,7 +911,11 @@ bool SniffAVI(
if (!memcmp(tmp, "RIFF", 4) && !memcmp(&tmp[8], "AVI ", 4)) {
mimeType->setTo(MEDIA_MIMETYPE_CONTAINER_AVI);
- *confidence = 0.2;
+
+ // Just a tad over the mp3 extractor's confidence, since
+ // these .avi files may contain .mp3 content that otherwise would
+ // mistakenly lead to us identifying the entire file as a .mp3 file.
+ *confidence = 0.21;
return true;
}