OSDN Git Service

stagefright-plugins: Skip 2nd parsing for ogg
authorKeith Mok <kmok@cyngn.com>
Mon, 22 Feb 2016 18:02:38 +0000 (10:02 -0800)
committerKeith Mok <kmok@cyngn.com>
Tue, 23 Feb 2016 21:47:56 +0000 (13:47 -0800)
Currently only drm extractor from stagefright
provides confidence > 0.8f.
This makes almosts all media files to be parsed a 2nd time
in ffmpeg.

Skip parsing file that is determined by stagefright as ogg
file. The stagefright ogg extractor handles it well enough.

Change-Id: Ic6ab86c8cef38dbbac337f1bf5f4ec2a8bbcd862

extractor/FFmpegExtractor.cpp

index 403bef6..6f05da5 100644 (file)
@@ -2150,6 +2150,9 @@ bool SniffFFMPEG(
     // This is a heavyweight sniffer, don't invoke it if Stagefright knows
     // what it is doing already.
     if (mimeType != NULL && confidence != NULL) {
+        if (*mimeType == "application/ogg") {
+            return false;
+        }
         if (*confidence > 0.8f) {
             return false;
         }