OSDN Git Service

extractor: Fast-track the stream analysis if we already have a skip condition
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>
Fri, 16 May 2014 18:12:09 +0000 (19:12 +0100)
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>
Fri, 16 May 2014 18:12:09 +0000 (19:12 +0100)
commitfda32b9780337a05a37b4ff4a1b6daaa75415f8a
treec03ca94e7152d7f05449aeb421fa1eb594a8059e
parent293c98c20b163af13eb7fd9866c26f0e07d05a51
extractor: Fast-track the stream analysis if we already have a skip condition

The sniffer already has an abort clause if the container is identified
as MPEG4 and the media source is caching (HTTP, typically). If we figure
this out early, there's no need to drill down into the individual streams,
and we can skip the deeper stream analysis, saving somewhere between 5 and
15 seconds in the identification process.

Change-Id: I64d33dc22262dd389e48b5f07047a8a1908f4ff3
libstagefright/FFmpegExtractor/FFmpegExtractor.cpp