diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2012-03-29 07:21:09 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2012-03-29 07:21:09 +0400 |
commit | 2599d283bc86b309da99ad55500fb5f0a44503d7 (patch) | |
tree | 3dd1067f46550365075a8ce47ff7e8c0971bc714 /src/Subtitles | |
parent | b2f4261be21ca48daa0b914dba4fe00a0490dc84 (diff) |
Fix : Incorrect display HDMV/PGS subtitles;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4208 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/Subtitles')
-rw-r--r-- | src/Subtitles/CompositionObject.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Subtitles/CompositionObject.cpp b/src/Subtitles/CompositionObject.cpp index 7b79023e9..6ed632e59 100644 --- a/src/Subtitles/CompositionObject.cpp +++ b/src/Subtitles/CompositionObject.cpp @@ -44,6 +44,7 @@ CompositionObject::~CompositionObject() void CompositionObject::SetPalette (int nNbEntry, HDMV_PALETTE* pPalette, bool bIsHD)
{
+ m_nColorNumber = nNbEntry;
for (int i=0; i<nNbEntry; i++) {
if (bIsHD) {
m_Colors[pPalette[i].entry_id] = YCrCbToRGB_Rec709 (pPalette[i].T, pPalette[i].Y, pPalette[i].Cr, pPalette[i].Cb);
|