summaryrefslogtreecommitdiff
path: root/libavcodec/4xm.c
diff options
context:
space:
mode:
authorAneesh Dogra <lionaneesh@gmail.com>2012-01-05 00:42:26 +0530
committerRonald S. Bultje <rsbultje@gmail.com>2012-01-04 21:09:22 -0800
commit893f1376793e67e4be76d074d51313e59805bd40 (patch)
treeb206e71064ebaf8268e43f422d9e0eca7b808a2b /libavcodec/4xm.c
parentfeb15cee5e19a1e31d075ec08d598d64c2dc38ef (diff)
4xm: fix calculation of the next output line position in decode_i2_frame().
The current code doesn't work unless width is an exact multiple of 16. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/4xm.c')
-rw-r--r--libavcodec/4xm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 83f0a12f1c..7cda26ed30 100644
--- a/libavcodec/4xm.c
+++ b/libavcodec/4xm.c
@@ -640,7 +640,7 @@ static int decode_i2_frame(FourXContext *f, const uint8_t *buf, int length){
}
dst+=16;
}
- dst += 16*stride - width;
+ dst += 16 * stride - x;
}
return 0;