diff options
author | Tobias Grimm <tobias@e-tobi.loc> | 2008-12-13 10:47:51 +0100 |
---|---|---|
committer | Tobias Grimm <tobias@e-tobi.loc> | 2008-12-13 10:47:51 +0100 |
commit | e98281852544a159522de0e561ac64c23c447468 (patch) | |
tree | 1fedc0c55429cbdc639f768b34e72a02e6dc9a9d /ttxtsubsfilter.c | |
parent | 24caa0c99ed1482655d1832d5e23ec69a6d10962 (diff) | |
download | vdr-plugin-ttxtsubs-0.0.3b.tar.gz vdr-plugin-ttxtsubs-0.0.3b.tar.bz2 |
- Work around for problem with stray segments at channel (frequency)v0.0.3b
change with driver in hw_sections=0 mode
- Removed some g++ 3.3 warnings
- Skipping non dvb devices when calculating /dev/dvb/adapter no
Diffstat (limited to 'ttxtsubsfilter.c')
-rw-r--r-- | ttxtsubsfilter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ttxtsubsfilter.c b/ttxtsubsfilter.c index a50a3fb..b997e82 100644 --- a/ttxtsubsfilter.c +++ b/ttxtsubsfilter.c @@ -141,11 +141,11 @@ void cTtxtSubsFilter::MakeY0(char *outdata, char *indata, uint16_t newpageno) memcpy(o->data + 2, i->data + 2, 6); // new text - char txtbuf[32]; + unsigned char txtbuf[32]; size_t txtlen; size_t n; - txtlen = snprintf(txtbuf, 32, "%03x", newpageno < 0x100 ? newpageno + 0x800 : newpageno); + txtlen = snprintf((char *) txtbuf, 32, "%03x", newpageno < 0x100 ? newpageno + 0x800 : newpageno); for(n = 0; n < txtlen; n++) { if(parity(txtbuf[n])) @@ -154,5 +154,5 @@ void cTtxtSubsFilter::MakeY0(char *outdata, char *indata, uint16_t newpageno) o->data[n + 8] = invtab[txtbuf[n]]; // XXX wrong parity? } for(; n < 32; n++) - o->data[n + 8] = invtab[' ']; // space already has right parity + o->data[n + 8] = invtab[(unsigned char) ' ']; // space already has right parity } |