4xm: fix calculation of the next output line position in decode_i2_frame().
authorAneesh Dogra <lionaneesh@gmail.com>
Wed, 4 Jan 2012 19:12:26 +0000 (00:42 +0530)
committerRonald S. Bultje <rsbultje@gmail.com>
Thu, 5 Jan 2012 05:09:22 +0000 (21:09 -0800)
The current code doesn't work unless width is an exact multiple of 16.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/4xm.c

index 83f0a12..7cda26e 100644 (file)
@@ -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;