diff options
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(); |