fixing mem corruption
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Apr 2003 13:36:07 +0000 (13:36 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Apr 2003 13:36:07 +0000 (13:36 +0000)
Originally committed as revision 1729 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/imgconvert.c

index cfb21a4776d67c6937119a4497d7761e730ff1e2..ca1aec6adb18b74ee8284f3ab492a88f0a71b350 100644 (file)
@@ -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;