From 56997121c5031598fbbba7b7c53980b7fd529c2d Mon Sep 17 00:00:00 2001 From: Marco Nelissen Date: Tue, 28 Aug 2012 15:09:49 -0700 Subject: Fragmented mp4 extractor Still experimental. Set property "media.stagefright.use-fragmp4" to true to enable. Change-Id: I210b9c5b5164b5c5eefc31309845ee881ac7db8e --- media/libstagefright/MetaData.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'media/libstagefright/MetaData.cpp') diff --git a/media/libstagefright/MetaData.cpp b/media/libstagefright/MetaData.cpp index 755594a..a01ec97 100644 --- a/media/libstagefright/MetaData.cpp +++ b/media/libstagefright/MetaData.cpp @@ -22,6 +22,8 @@ #include #include +#include +#include #include namespace android { @@ -318,6 +320,12 @@ String8 MetaData::typed_data::asString() const { default: out = String8::format("(unknown type %d, size %d)", mType, mSize); + if (mSize <= 48) { // if it's less than three lines of hex data, dump it + AString foo; + hexdump(data, mSize, 0, &foo); + out.append("\n"); + out.append(foo.c_str()); + } break; } return out; -- cgit v1.1