Mercurial > mplayer.hg
changeset 12378:649f596054e0
more lvalue casts, ugly this time
author | rfelker |
---|---|
date | Sat, 01 May 2004 18:42:50 +0000 |
parents | d51610530481 |
children | 4100528fadf1 |
files | libmpcodecs/native/RTjpegN.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/native/RTjpegN.c Sat May 01 18:36:50 2004 +0000 +++ b/libmpcodecs/native/RTjpegN.c Sat May 01 18:42:50 2004 +0000 @@ -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++;