diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-08-10 15:34:06 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-08-10 15:34:06 -0700 |
commit | b3e12a4d15a329821979bf287c49a9630486e23f (patch) | |
tree | b79b0ca57e79e2ee19f09b150f9a60e397af24d7 /include | |
parent | 751fa786aa9599c694219085601f9f5ebe96a516 (diff) | |
parent | 3ca352c4cd01f6df3b691f835efc68a5771e724e (diff) | |
download | frameworks_av-b3e12a4d15a329821979bf287c49a9630486e23f.zip frameworks_av-b3e12a4d15a329821979bf287c49a9630486e23f.tar.gz frameworks_av-b3e12a4d15a329821979bf287c49a9630486e23f.tar.bz2 |
am 3ca352c4: am 24893fef: Merge "MPEG2TSWriter: Write a proper CRC in PAT and PMT"
* commit '3ca352c4cd01f6df3b691f835efc68a5771e724e':
MPEG2TSWriter: Write a proper CRC in PAT and PMT
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/MPEG2TSWriter.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/stagefright/MPEG2TSWriter.h b/include/media/stagefright/MPEG2TSWriter.h index 98fcf1d..2e2922e 100644 --- a/include/media/stagefright/MPEG2TSWriter.h +++ b/include/media/stagefright/MPEG2TSWriter.h @@ -71,6 +71,7 @@ private: int64_t mNumTSPacketsBeforeMeta; int mPATContinuityCounter; int mPMTContinuityCounter; + uint32_t mCrcTable[256]; void init(); @@ -78,6 +79,8 @@ private: void writeProgramAssociationTable(); void writeProgramMap(); void writeAccessUnit(int32_t sourceIndex, const sp<ABuffer> &buffer); + void initCrcTable(); + uint32_t crc32(const uint8_t *start, size_t length); ssize_t internalWrite(const void *data, size_t size); status_t reset(); |