aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dsputil.c
diff options
context:
space:
mode:
authorFelix von Leitner <felix-ffmpeg@fefe.de>2003-01-11 21:04:47 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-01-11 21:04:47 +0000
commitd32ac509f6d9c828fed64a4584193828378cb22f (patch)
tree5f39f9ebcbbc93de580e22d142359823924ef13b /libavcodec/dsputil.c
parente629ab68a7ed341ab7f92b7d18c73509429453f3 (diff)
downloadffmpeg-d32ac509f6d9c828fed64a4584193828378cb22f.tar.gz
add/diff_bytes bugfix patch by (Felix von Leitner <felix-ffmpeg at fefe dot de>)
Originally committed as revision 1449 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r--libavcodec/dsputil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index fc5afbeb49..80e9ea1470 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -1611,7 +1611,7 @@ static void clear_blocks_c(DCTELEM *blocks)
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 add_bytes_c(uint8_t *dst, uint8_t *src, int w){
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];