[MPlayer-dev-eng] [PATCH] Teletext support try3 (1/5, core)
Vladimir Voroshilov
voroshil at gmail.com
Wed Jul 18 20:18:17 CEST 2007
Hi, Michael
2007/7/18, Michael Niedermayer <michaelni at gmx.at>:
> Hi
>
> On Tue, Jul 17, 2007 at 10:19:42PM +0700, Vladimir Voroshilov wrote:
> > +
> > + if(p[0].raw<0x80 && p[0].raw>=0x20){
> > + p[0].unicode=lang_chars[lang][p[0].raw-0x20];
> > + }else
> > + p[0].unicode=0x20;
> > +}
>
> conv2uni(unsigned int p, int lang)
> {
> if(p-0x20 < 0x80) return lang_chars[lang][p - 0x20];
> else return 0x20;
> }
I'm afraid you have an error in "if(p-0x20<0x80).
Values over 0x80 are damaged, lower than 0x20 are control chars.
Rewrited in similar way.
All other issues (i hope miss nothing) have been fixed as suggested by you.
See attached file.
--
Regards,
Vladimir Voroshilov mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tt35_core.diff
Type: text/x-diff
Size: 41694 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070719/95ec8261/attachment.diff>
More information about the MPlayer-dev-eng
mailing list