diff options
author | tomasen <tomasen@users.sourceforge.net> | 2009-08-30 01:35:28 +0400 |
---|---|---|
committer | tomasen <tomasen@users.sourceforge.net> | 2009-08-30 01:35:28 +0400 |
commit | e76398dcf11c37eafffe6b0bf713d2021783838c (patch) | |
tree | 8bd1e18bf973373e347a1a33f5b2021206d0261e /src/subtitles/CCDecoder.cpp | |
parent | f29491707c5d749fc4879784c55ceb67f267d8b2 (diff) |
Fix : Compiler Error on multi-bytes OS system. Replace European Character to \xXX style
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1258 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/subtitles/CCDecoder.cpp')
-rw-r--r-- | src/subtitles/CCDecoder.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/subtitles/CCDecoder.cpp b/src/subtitles/CCDecoder.cpp index 2eb033e88..7d816277c 100644 --- a/src/subtitles/CCDecoder.cpp +++ b/src/subtitles/CCDecoder.cpp @@ -126,12 +126,12 @@ void CCDecoder::DecodeCC(BYTE* buff, int len, __int64 time) {
static WCHAR charmap[0x60] =
{
- ' ','!','"','#','$','%','&','\'','(',')','á','+',',','-','.','/',
- '0','1','2','3','4','5','6','7','8','9',':',';','<','=','>','?',
+ ' ','!','"','#','$','%','&','\'','(',')',0xE1,'+',',','-','.','/',
+ '0','1','2','3','4','5','6','7','8','9',':',';','<','=','>',0x3F,
'@','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O',
- 'P','Q','R','S','T','U','V','W','X','Y','Z','[','é',']','í','ó',
- 'ú','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o',
- 'p','q','r','s','t','u','v','w','x','y','z','ç','÷','N','n','?'
+ 'P','Q','R','S','T','U','V','W','X','Y','Z','[',0xE9,']',0xED,0xF3,
+ 0xFA,'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o',
+ 'p','q','r','s','t','u','v','w','x','y','z',0xE7,0xF7,'N','n',0x3F
};
PutChar(charmap[c - 0x20]);
@@ -337,8 +337,8 @@ void CCDecoder::ExtractCC(BYTE* buff, int len, __int64 time) {
nBytes = (nBytes+1)&~1;
- BYTE* pData1 = DNew BYTE[nBytes];
- BYTE* pData2 = DNew BYTE[nBytes];
+ BYTE* pData1 = new BYTE[nBytes];
+ BYTE* pData2 = new BYTE[nBytes];
if(pData1 && pData2)
{
|