Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8c84b34 authored by Andreas Huber's avatar Andreas Huber
Browse files

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
parent 92bda84b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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;
    }