From 5064357588a187672ca64c169dc6e6e406777629 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 4 Apr 2003 13:36:07 +0000 Subject: [PATCH] fixing mem corruption Originally committed as revision 1729 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/imgconvert.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index cfb21a4776..ca1aec6adb 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -364,6 +364,8 @@ static void conv411(uint8_t *dst, int dst_wrap, int w, c; uint8_t *s1, *s2, *d; + width>>=1; + for(;height > 0; height--) { s1 = src; s2 = src + src_wrap;