comparison imgconvert.c @ 1166:54384dc71fe7 libavcodec

fixing mem corruption
author michaelni
date Fri, 04 Apr 2003 13:36:07 +0000
parents bfc18110d4b6
children 6b566c5d02e4
comparison
equal deleted inserted replaced
1165:f0c39139426d 1166:54384dc71fe7
362 int width, int height) 362 int width, int height)
363 { 363 {
364 int w, c; 364 int w, c;
365 uint8_t *s1, *s2, *d; 365 uint8_t *s1, *s2, *d;
366 366
367 width>>=1;
368
367 for(;height > 0; height--) { 369 for(;height > 0; height--) {
368 s1 = src; 370 s1 = src;
369 s2 = src + src_wrap; 371 s2 = src + src_wrap;
370 d = dst; 372 d = dst;
371 for(w = width;w > 0; w--) { 373 for(w = width;w > 0; w--) {