summaryrefslogtreecommitdiff
path: root/third_party/libwebm/mkvreader.hpp
diff options
context:
space:
mode:
authorVignesh Venkatasubramanian <vigneshv@google.com>2014-04-08 16:25:23 -0700
committerVignesh Venkatasubramanian <vigneshv@google.com>2014-04-08 16:25:23 -0700
commit919553695c9673ff7016e9435905412fcdfbd552 (patch)
treed0a3758c44588742c2e56b4d2ae67b489a846e67 /third_party/libwebm/mkvreader.hpp
parente8e380f994e53c12f34721ed9e5a13b24b09f5f7 (diff)
downloadlibvpx-919553695c9673ff7016e9435905412fcdfbd552.tar
libvpx-919553695c9673ff7016e9435905412fcdfbd552.tar.gz
libvpx-919553695c9673ff7016e9435905412fcdfbd552.tar.bz2
libvpx-919553695c9673ff7016e9435905412fcdfbd552.zip
third_party/libwebm: Pull from upstream
Pulling latest libwebm from upstream. Change-Id: I62edafb0b0283160c9b4060fd5907e3aad6c7820
Diffstat (limited to 'third_party/libwebm/mkvreader.hpp')
-rw-r--r--third_party/libwebm/mkvreader.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/libwebm/mkvreader.hpp b/third_party/libwebm/mkvreader.hpp
index adcc29f47..8ebdd99a7 100644
--- a/third_party/libwebm/mkvreader.hpp
+++ b/third_party/libwebm/mkvreader.hpp
@@ -21,6 +21,7 @@ class MkvReader : public IMkvReader
MkvReader& operator=(const MkvReader&);
public:
MkvReader();
+ MkvReader(FILE* fp);
virtual ~MkvReader();
int Open(const char*);
@@ -29,8 +30,15 @@ public:
virtual int Read(long long position, long length, unsigned char* buffer);
virtual int Length(long long* total, long long* available);
private:
+
+ // Determines the size of the file. This is called either by the constructor
+ // or by the Open function depending on file ownership. Returns true on
+ // success.
+ bool GetFileSize();
+
long long m_length;
FILE* m_file;
+ bool reader_owns_file_;
};
} //end namespace mkvparser