diff options
author | Andreas Huber <andih@google.com> | 2010-08-25 11:09:41 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-08-25 13:08:38 -0700 |
commit | efdd088a71ddd0a96cf9ca2f58e8703fe8c5c494 (patch) | |
tree | f4bbf913a51ded55645293b85f4b5af5e8d8f7ff /media/libstagefright/mpeg2ts | |
parent | 231a0005654d23284ab58a2d9ea892b995988c34 (diff) | |
download | frameworks_base-efdd088a71ddd0a96cf9ca2f58e8703fe8c5c494.zip frameworks_base-efdd088a71ddd0a96cf9ca2f58e8703fe8c5c494.tar.gz frameworks_base-efdd088a71ddd0a96cf9ca2f58e8703fe8c5c494.tar.bz2 |
Allow sniffers to return a packet of opaque data that the corresponding extractor can take advantage of to not duplicate work already done sniffing. The mp3 extractor takes advantage of this now.
Change-Id: Icb77ae3ee95a69c7da25b4d3b8696c0a2d33028a
related-to-bug: 2948754
Diffstat (limited to 'media/libstagefright/mpeg2ts')
-rw-r--r-- | media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp b/media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp index b287c95..56ca375 100644 --- a/media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp +++ b/media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp @@ -174,7 +174,8 @@ status_t MPEG2TSExtractor::feedMore() { //////////////////////////////////////////////////////////////////////////////// bool SniffMPEG2TS( - const sp<DataSource> &source, String8 *mimeType, float *confidence) { + const sp<DataSource> &source, String8 *mimeType, float *confidence, + sp<AMessage> *) { #if 0 char header; if (source->readAt(0, &header, 1) != 1 || header != 0x47) { |