changeset 1166:54384dc71fe7 libavcodec

fixing mem corruption
author michaelni
date Fri, 04 Apr 2003 13:36:07 +0000
parents f0c39139426d
children 35b80080b2db
files imgconvert.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/imgconvert.c	Wed Apr 02 10:18:29 2003 +0000
+++ b/imgconvert.c	Fri Apr 04 13:36:07 2003 +0000
@@ -364,6 +364,8 @@
     int w, c;
     uint8_t *s1, *s2, *d;
 
+    width>>=1;
+
     for(;height > 0; height--) {
         s1 = src;
         s2 = src + src_wrap;