OSDN Git Service

stagefright-plugins: Only do as much sniffing as necessary
authorSteve Kondik <steve@cyngn.com>
Mon, 28 Dec 2015 21:13:48 +0000 (13:13 -0800)
committerSteve Kondik <steve@cyngn.com>
Tue, 29 Dec 2015 01:11:44 +0000 (17:11 -0800)
commit09f677f00291e5117ccf7d053a77bda12717c217
tree317d7252757dfdd5889993e1d91433df098b172a
parente7ea3992012549c747c570dcca9906c6b646fe6a
stagefright-plugins: Only do as much sniffing as necessary

 * Stagefright will now pass on the current knowledge of the stream
   instead of zeros/nulls, let's take advantage of it.
 * Don't bother sniffing if the confidence is already high.
 * Check how much info avformat_open_input found before we continue.
   For formats with headers, this is all we need and our latency is
   reduced to 10s of milliseconds vs. potentially seconds.
 * Add timing metrics in the debug prints.

Change-Id: I476fc6723c070e03a77c6aaa0f8198064a15af2c
extractor/FFmpegExtractor.cpp