summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/mpeg2ts
diff options
context:
space:
mode:
Diffstat (limited to 'media/libstagefright/mpeg2ts')
-rw-r--r--media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp b/media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp
index b798273..b287c95 100644
--- a/media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp
+++ b/media/libstagefright/mpeg2ts/MPEG2TSExtractor.cpp
@@ -175,6 +175,7 @@ status_t MPEG2TSExtractor::feedMore() {
bool SniffMPEG2TS(
const sp<DataSource> &source, String8 *mimeType, float *confidence) {
+#if 0
char header;
if (source->readAt(0, &header, 1) != 1 || header != 0x47) {
return false;
@@ -184,6 +185,13 @@ bool SniffMPEG2TS(
mimeType->setTo(MEDIA_MIMETYPE_CONTAINER_MPEG2TS);
return true;
+#else
+ // For now we're going to never identify this type of stream, since we'd
+ // just base our decision on a single byte...
+ // Instead you can instantiate an MPEG2TSExtractor by explicitly stating
+ // its proper mime type in the call to MediaExtractor::Create(...).
+ return false;
+#endif
}
} // namespace android