diff options
author | Marco Nelissen <marcone@google.com> | 2014-06-17 14:48:32 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2014-06-23 10:24:14 -0700 |
commit | c1f4b2b73fe9432cb75ce1dd368475a2867e70ed (patch) | |
tree | 88b7af43ca9c2d1752a28c602bacb4adc38e6172 /media/libstagefright/include | |
parent | 7a4d7d6670f1766442b54045fb420dbf42b75750 (diff) | |
download | frameworks_av-c1f4b2b73fe9432cb75ce1dd368475a2867e70ed.zip frameworks_av-c1f4b2b73fe9432cb75ce1dd368475a2867e70ed.tar.gz frameworks_av-c1f4b2b73fe9432cb75ce1dd368475a2867e70ed.tar.bz2 |
Parse trex and mehd boxes
Also get duration from mvhd if available, use that in addition to track
durations to determine total length of file, clear track header
struct so we don't read uninitialized garbage from it, and take
composition time offset into account for proper ordering when B frames
are used.
b/15669839
Change-Id: Ibf3e35b5c7299bac11d0e78a391545fc325dd2d0
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r-- | media/libstagefright/include/MPEG4Extractor.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/media/libstagefright/include/MPEG4Extractor.h b/media/libstagefright/include/MPEG4Extractor.h index 7b4bc6d..1fe6fcf 100644 --- a/media/libstagefright/include/MPEG4Extractor.h +++ b/media/libstagefright/include/MPEG4Extractor.h @@ -39,6 +39,14 @@ struct SidxEntry { uint32_t mDurationUs; }; +struct Trex { + uint32_t track_ID; + uint32_t default_sample_description_index; + uint32_t default_sample_duration; + uint32_t default_sample_size; + uint32_t default_sample_flags; +}; + class MPEG4Extractor : public MediaExtractor { public: // Extractor assumes ownership of "source". @@ -74,11 +82,12 @@ private: }; Vector<SidxEntry> mSidxEntries; - uint64_t mSidxDuration; off64_t mMoofOffset; Vector<PsshInfo> mPssh; + Vector<Trex> mTrex; + sp<DataSource> mDataSource; status_t mInitCheck; bool mHasVideo; |