diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2005-07-19 20:30:38 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2005-07-19 20:30:38 +0000 |
commit | fcc9a6282dd3c541055636ac49882d1639da251b (patch) | |
tree | 588b324e232caccf8085c85c7119d8d29ee2b6e8 /src/libffmpeg/libavcodec/indeo2.c | |
parent | 6bfc655ee19aa82cce3277e6f9c861661cca5fb4 (diff) | |
download | xine-lib-fcc9a6282dd3c541055636ac49882d1639da251b.tar.gz xine-lib-fcc9a6282dd3c541055636ac49882d1639da251b.tar.bz2 |
here is cvs update people requested - somebody please check for gcc4 compatibility
CVS patchset: 7668
CVS date: 2005/07/19 20:30:38
Diffstat (limited to 'src/libffmpeg/libavcodec/indeo2.c')
-rw-r--r-- | src/libffmpeg/libavcodec/indeo2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libffmpeg/libavcodec/indeo2.c b/src/libffmpeg/libavcodec/indeo2.c index 25561ec2d..5063117ca 100644 --- a/src/libffmpeg/libavcodec/indeo2.c +++ b/src/libffmpeg/libavcodec/indeo2.c @@ -118,11 +118,11 @@ static int ir2_decode_plane_inter(Ir2Context *ctx, int width, int height, uint8_ c -= 0x7F; out += c * 2; } else { /* add two deltas from table */ - t = dst[out] + (table[c * 2] - 128); + t = dst[out] + (((table[c * 2] - 128)*3) >> 2); t= clip_uint8(t); dst[out] = t; out++; - t = dst[out] + (table[(c * 2) + 1] - 128); + t = dst[out] + (((table[(c * 2) + 1] - 128)*3) >> 2); t= clip_uint8(t); dst[out] = t; out++; |