The current code doesn't works unless width is an exact multiple of 16
---
 libavcodec/4xm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index ed42d75..cfb8279 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;
-- 
1.7.7.3

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to