[Mplayer-cvslog] CVS: main/libmpcodecs/native RTjpegN.c,1.5,1.6
Richard Felker CVS
syncmail at mplayerhq.hu
Sat May 1 20:42:53 CEST 2004
CVS change done by Richard Felker CVS
Update of /cvsroot/mplayer/main/libmpcodecs/native
In directory mail:/var2/tmp/cvs-serv31317/libmpcodecs/native
Modified Files:
RTjpegN.c
Log Message:
more lvalue casts, ugly this time
Index: RTjpegN.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/native/RTjpegN.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- RTjpegN.c 30 Mar 2003 20:37:54 -0000 1.5
+++ RTjpegN.c 1 May 2004 18:42:50 -0000 1.6
@@ -159,7 +159,7 @@
// return 2;
// first byte allways written
- (__u8)strm[0]=
+ ((__u8*)strm)[0]=
(__u8)(data[RTjpeg_ZZ[0]]>254) ? 254:((data[RTjpeg_ZZ[0]]<0)?0:data[RTjpeg_ZZ[0]]);
@@ -169,7 +169,7 @@
bitten = ((unsigned char)ci) << 2;
if (ci==0) {
- (__u8)strm[1]= bitten;
+ ((__u8*)strm)[1]= bitten;
co = 2;
return (int)co;
}
@@ -198,7 +198,7 @@
}
if( bitoff == 0 ) {
- (__u8)strm[co]= bitten;
+ ((__u8*)strm)[co]= bitten;
bitten = 0;
bitoff = 8;
co++;
@@ -210,7 +210,7 @@
/* ci must be 0 */
if(bitoff != 6) {
- (__u8)strm[co]= bitten;
+ ((__u8*)strm)[co]= bitten;
co++;
}
@@ -227,7 +227,7 @@
break;
case 2:
case 0:
- (__u8)strm[co]= bitten;
+ ((__u8*)strm)[co]= bitten;
bitoff = 4;
co++;
bitten = 0; // clear half nibble values in bitten
@@ -248,7 +248,7 @@
bitten |= (ZZvalue&0xf)<<bitoff;
if( bitoff == 0 ) {
- (__u8)strm[co]= bitten;
+ ((__u8*)strm)[co]= bitten;
bitten = 0;
bitoff = 8;
co++;
@@ -258,14 +258,14 @@
/* ci must be 0 */
if( bitoff == 0 ) {
- (__u8)strm[co]= bitten;
+ ((__u8*)strm)[co]= bitten;
co++;
}
goto BAUCHWEH;
HIRNWEH:
- (__u8)strm[co]= bitten;
+ ((__u8*)strm)[co]= bitten;
co++;
More information about the MPlayer-cvslog
mailing list