summaryrefslogtreecommitdiff
path: root/libavcodec/truemotion2.c
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2005-10-16 13:56:52 +0000
committerMike Melanson <mike@multimedia.cx>2005-10-16 13:56:52 +0000
commit48fa22d74716f1ebb384c24324427bc38d8a29c6 (patch)
tree59e760bfa68a41eaafcbfc8f521987dc120b394b /libavcodec/truemotion2.c
parente6885654eb5e904102cf8c5c3d41d6d2a887545c (diff)
downloadffmpeg-48fa22d74716f1ebb384c24324427bc38d8a29c6.tar.gz
chroma decoding fix by Kostya
Originally committed as revision 4647 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/truemotion2.c')
-rw-r--r--libavcodec/truemotion2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/truemotion2.c b/libavcodec/truemotion2.c
index 543a7728fa..42487bf32b 100644
--- a/libavcodec/truemotion2.c
+++ b/libavcodec/truemotion2.c
@@ -413,7 +413,7 @@ static inline void tm2_low_chroma(int *data, int stride, int *clast, int *CD, in
else
prev = 0;
t = (CD[0] + CD[1]) >> 1;
- l = (prev - CD[0] - CD[1] + clast[1] + 1) >> 1;
+ l = (prev - CD[0] - CD[1] + clast[1]) >> 1;
CD[1] = CD[0] + CD[1] - t;
CD[0] = t;
clast[0] = l;