diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2008-08-23 20:11:02 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2008-08-23 20:11:02 +0400 |
commit | cbc6407400cce9b28b5a1a09669492da5c4b3615 (patch) | |
tree | 6c2bd09ecfdff78eb714ac438834f9d125c61a2c /src/subtitles/HdmvSub.h | |
parent | 71cfe736ac45263cc19f55dfe39a2cdaf65790e2 (diff) |
Fix : crash on large PGS objects
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@751 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/subtitles/HdmvSub.h')
-rw-r--r-- | src/subtitles/HdmvSub.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/subtitles/HdmvSub.h b/src/subtitles/HdmvSub.h index cae649303..b74209862 100644 --- a/src/subtitles/HdmvSub.h +++ b/src/subtitles/HdmvSub.h @@ -74,7 +74,6 @@ public: bool m_object_cropped_flag;
bool m_forced_on_flag;
BYTE m_version_number;
- BYTE m_sequence_desc;
SHORT m_horizontal_position;
SHORT m_vertical_position;
@@ -92,8 +91,10 @@ public: CompositionObject();
~CompositionObject();
- void SetRLEData(BYTE* pBuffer, int nSize);
- int GetRLEDataSize() { return m_nRLEDataSize; };
+ void SetRLEData(BYTE* pBuffer, int nSize, int nTotalSize);
+ void AppendRLEData(BYTE* pBuffer, int nSize);
+ int GetRLEDataSize() { return m_nRLEDataSize; };
+ bool IsRLEUncomplete() { return m_nRLEPos != 0; };
void Render(SubPicDesc& spd);
void WriteSeg (SubPicDesc& spd, SHORT nX, SHORT nY, SHORT nCount, SHORT nPaletteIndex);
void SetColors (int nColorNumber, long* pColors);
@@ -103,6 +104,7 @@ public: CHdmvSub* m_pSub;
BYTE* m_pRLEData;
int m_nRLEDataSize;
+ int m_nRLEPos;
int m_nColorNumber;
long* m_pColors;
};
|