diff options
-rw-r--r-- | dxr3pesframe.c | 3 | ||||
-rw-r--r-- | dxr3pesframe.h | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/dxr3pesframe.c b/dxr3pesframe.c index 9c0346a..88d96c0 100644 --- a/dxr3pesframe.c +++ b/dxr3pesframe.c @@ -55,6 +55,9 @@ bool cDxr3PesFrame::parse(const uint8_t *pes, uint32_t length) return false; } + // store start of pes frame + m_pesStart = pes; + // read pes header len uint8_t pesHeaderDataLength = pes[8]; diff --git a/dxr3pesframe.h b/dxr3pesframe.h index 555672d..10cd8ab 100644 --- a/dxr3pesframe.h +++ b/dxr3pesframe.h @@ -53,7 +53,7 @@ public: public: cDxr3PesFrame() : m_pesDataType(PES_UNKNOWN_DATA), - m_pPesStart(0), + m_pesStart(0), m_payload(0), m_payloadLength(0), m_pts(0), @@ -74,7 +74,7 @@ public: const uint8_t* GetPesStart() const { - return m_pPesStart; + return m_pesStart; } const uint8_t* GetPayload() const @@ -125,7 +125,7 @@ private: void InitData() { m_pesDataType = PES_UNKNOWN_DATA; - m_pPesStart = 0; + m_pesStart = 0; m_payload = 0; m_payloadLength = 0; m_pts = 0; @@ -137,7 +137,7 @@ private: } ePesDataType m_pesDataType; - const uint8_t* m_pPesStart; + const uint8_t* m_pesStart; const uint8_t* m_payload; uint32_t m_payloadLength; uint32_t m_pts; |