diff options
| author | 2011-09-12 13:49:00 -0700 | |
|---|---|---|
| committer | 2011-09-12 13:49:00 -0700 | |
| commit | f8c84b343488c29cc6ef224a7df751c94955e029 (patch) | |
| tree | 9f04d1a407c1795822c75b3ef9a3abffc3f66928 | |
| parent | 92bda84b11ba2aec98036313784444d9f5aebc9a (diff) | |
Increase the avi extractor's confidence slighly over mp3's
So that we don't accidentally identify a .avi file containing an mp3 track as
an mp3 file.
Change-Id: I73495b80cbb5bc1007bf810f2db453c9f175171b
related-to-bug: 5288189
| -rw-r--r-- | media/libstagefright/AVIExtractor.cpp | 6 |
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; } |