[Mplayer-cvslog] CVS: main/libvo sub.c,1.59,1.60
Arpi of Ize
arpi at mplayerhq.hu
Sat Dec 14 18:56:53 CET 2002
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv30768/libvo
Modified Files:
sub.c
Log Message:
compiler warning fixes
based on patch by Dominik Mierzejewski <dominik at rangers.eu.org>
Index: sub.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/sub.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- sub.c 10 Dec 2002 23:10:24 -0000 1.59
+++ sub.c 14 Dec 2002 17:56:14 -0000 1.60
@@ -336,9 +336,10 @@
if (sub_utf8){
if ((c & 0xe0) == 0xc0) /* 2 bytes U+00080..U+0007FF*/
c = (c & 0x1f)<<6 | (t[++j] & 0x3f);
- else if((c & 0xf0) == 0xe0)/* 3 bytes U+00800..U+00FFFF*/
- c = ((c & 0x0f)<<6 |
- (t[++j] & 0x3f))<<6 | (t[++j] & 0x3f);
+ else if((c & 0xf0) == 0xe0){ /* 3 bytes U+00800..U+00FFFF*/
+ c = (((c & 0x0f)<<6) | (t[++j] & 0x3f))<<6;
+ c |= (t[++j] & 0x3f);
+ }
} else if (sub_unicode)
c = (c<<8) + t[++j];
}
More information about the MPlayer-cvslog
mailing list