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

Commit 382b0f63 authored by Steve Kondik's avatar Steve Kondik Committed by Steve Kondik
Browse files

stagefright: Adjust confidence threshold for extended sniffers

 * Some sniffers return 0.2 for cases where they only find an audio
   track in some containers.
 * Change the comparison to also examine files right on this threshold.
 * This allows us to score ONE FUCKING HUNDRED PERCENT on the Antutu
   Video Test \o/

Change-Id: I78b6ab8a634771e0e290f669801f5b08d6a32a51
parent e57c024b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ bool Sniffer::sniff(
    }

    /* Only do the deeper sniffers if the results are null or in doubt */
    if (mimeType->length() == 0 || *confidence < 0.2f || forceExtraSniffers) {
    if (mimeType->length() == 0 || *confidence <= 0.2f || forceExtraSniffers) {
        for (List<SnifferFunc>::iterator it = mExtraSniffers.begin();
                it != mExtraSniffers.end(); ++it) {
            String8 newMimeType;