Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksoid <aleksoid@users.sourceforge.net>2012-03-20 10:04:03 +0400
committerAleksoid <aleksoid@users.sourceforge.net>2012-03-20 10:04:03 +0400
commitf459ebd8d9c01c3e8840c2094d31d42827c48bf5 (patch)
treeb4d1d91ab7e0be3ea9dbc0e3352a8190dd06c82b /src/Subtitles
parent7b1aaaf4b19ca8d4862e4a9e73418db20c3d15c3 (diff)
Change : Reduce font for MI information;
Change : update libav, thanks to Alexins; update ffImgfmt to the latest version of ffdshow; Fix : MPCVideoDecFilter - incorrect output "color space" after decoding H.264, when fullrange flag present in the header Fix : DVB Subtitle, Clut parser fix - empty Palette entry if Y component is zero; git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4160 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/Subtitles')
-rw-r--r--src/Subtitles/DVBSub.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Subtitles/DVBSub.cpp b/src/Subtitles/DVBSub.cpp
index 2be4a9f33..c86a74906 100644
--- a/src/Subtitles/DVBSub.cpp
+++ b/src/Subtitles/DVBSub.cpp
@@ -513,13 +513,17 @@ HRESULT CDVBSub::ParseClut(CGolombBuffer& gb, WORD wSegLength)
pClut->Palette[entry_id].Y = gb.ReadByte();
pClut->Palette[entry_id].Cr = gb.ReadByte();
pClut->Palette[entry_id].Cb = gb.ReadByte();
- pClut->Palette[entry_id].T = 255-gb.ReadByte();
+ pClut->Palette[entry_id].T = 0xff-gb.ReadByte();
} else {
pClut->Palette[entry_id].Y = (BYTE)gb.BitRead(6)<<2;
pClut->Palette[entry_id].Cr = (BYTE)gb.BitRead(4)<<4;
pClut->Palette[entry_id].Cb = (BYTE)gb.BitRead(4)<<4;
- pClut->Palette[entry_id].T = 255-((BYTE)gb.BitRead(2)<<6);
+ pClut->Palette[entry_id].T = 0xff-((BYTE)gb.BitRead(2)<<6);
}
+ if(!pClut->Palette[entry_id].Y) {
+ pClut->Palette[entry_id].Cr = pClut->Palette[entry_id].Cb = pClut->Palette[entry_id].T = 0;
+ }
+
pClut->Size = max (pClut->Size, entry_id);
}
}