[FFmpeg-cvslog] 4xm: fix calculation of the next output line position in decode_i2_frame().
Aneesh Dogra
git at videolan.org
Fri Jan 6 02:53:06 CET 2012
ffmpeg | branch: master | Aneesh Dogra <lionaneesh at gmail.com> | Thu Jan 5 01:00:26 2012 +0530| [893f1376793e67e4be76d074d51313e59805bd40] | committer: Ronald S. Bultje
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 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=893f1376793e67e4be76d074d51313e59805bd40
---
libavcodec/4xm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 83f0a12..7cda26e 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;
More information about the ffmpeg-cvslog
mailing list