summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include/SampleTable.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-08-17 13:03:51 -0700
committerAndreas Huber <andih@google.com>2011-08-17 13:03:51 -0700
commit169c286ed166499c5099d2b336967e0bf3d25551 (patch)
tree762830447cdb8540b297da53fd76d709d899b4b8 /media/libstagefright/include/SampleTable.h
parent8a976a863cf921f97feff8be63f11775a1d8b76f (diff)
downloadframeworks_av-169c286ed166499c5099d2b336967e0bf3d25551.zip
frameworks_av-169c286ed166499c5099d2b336967e0bf3d25551.tar.gz
frameworks_av-169c286ed166499c5099d2b336967e0bf3d25551.tar.bz2
Make sure we have all the sample table metadata before declaring a track valid.
Change-Id: I2dfbc3e6017b5cd264e4cccfa47d19047b2e7f31 related-to-bug: 5178976
Diffstat (limited to 'media/libstagefright/include/SampleTable.h')
-rw-r--r--media/libstagefright/include/SampleTable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libstagefright/include/SampleTable.h b/media/libstagefright/include/SampleTable.h
index f44e0a2..a6a6524 100644
--- a/media/libstagefright/include/SampleTable.h
+++ b/media/libstagefright/include/SampleTable.h
@@ -34,6 +34,8 @@ class SampleTable : public RefBase {
public:
SampleTable(const sp<DataSource> &source);
+ bool isValid() const;
+
// type can be 'stco' or 'co64'.
status_t setChunkOffsetParams(
uint32_t type, off64_t data_offset, size_t data_size);