diff options
author | Paul Fariello <fariello@archos.com> | 2012-01-23 17:21:33 +0100 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2012-07-10 13:36:14 +0300 |
commit | 983995747ed3adaf25035c433df1ccbaa056a898 (patch) | |
tree | 560ae326126ee657e50d7ff36119760b1992936e /include | |
parent | d4e5af6bc0a012e8d43975ca8b5627631333920d (diff) | |
download | frameworks_av-983995747ed3adaf25035c433df1ccbaa056a898.zip frameworks_av-983995747ed3adaf25035c433df1ccbaa056a898.tar.gz frameworks_av-983995747ed3adaf25035c433df1ccbaa056a898.tar.bz2 |
MPEG2TSWriter: Write a proper CRC in PAT and PMT
Change-Id: I6ec8039b176878da6f02691194d96b0a1e894055
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(); |