changeset 996:ad44196ea483 libavcodec

add/diff_bytes bugfix patch by (Felix von Leitner <felix-ffmpeg at fefe dot de>)
author michaelni
date Sat, 11 Jan 2003 21:04:47 +0000
parents edc10966b081
children 4dfe15ae0078
files dsputil.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dsputil.c	Sat Jan 11 20:51:03 2003 +0000
+++ b/dsputil.c	Sat Jan 11 21:04:47 2003 +0000
@@ -1611,7 +1611,7 @@
 
 static void add_bytes_c(uint8_t *dst, uint8_t *src, int w){
     int i;
-    for(i=0; i+7<w; i++){
+    for(i=0; i+7<w; i+=8){
         dst[i+0] += src[i+0];
         dst[i+1] += src[i+1];
         dst[i+2] += src[i+2];
@@ -1627,7 +1627,7 @@
 
 static void diff_bytes_c(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w){
     int i;
-    for(i=0; i+7<w; i++){
+    for(i=0; i+7<w; i+=8){
         dst[i+0] = src1[i+0]-src2[i+0];
         dst[i+1] = src1[i+1]-src2[i+1];
         dst[i+2] = src1[i+2]-src2[i+2];