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;