Commit fcb34adf authored by michaelni's avatar michaelni

add/diff_bytes bugfix patch by (Felix von Leitner <felix-ffmpeg at fefe dot de>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1449 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 98eb6406
...@@ -1611,7 +1611,7 @@ static void clear_blocks_c(DCTELEM *blocks) ...@@ -1611,7 +1611,7 @@ static void clear_blocks_c(DCTELEM *blocks)
static void add_bytes_c(uint8_t *dst, uint8_t *src, int w){ static void add_bytes_c(uint8_t *dst, uint8_t *src, int w){
int i; 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+0] += src[i+0];
dst[i+1] += src[i+1]; dst[i+1] += src[i+1];
dst[i+2] += src[i+2]; dst[i+2] += src[i+2];
...@@ -1627,7 +1627,7 @@ static void add_bytes_c(uint8_t *dst, uint8_t *src, int w){ ...@@ -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){ static void diff_bytes_c(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w){
int i; 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+0] = src1[i+0]-src2[i+0];
dst[i+1] = src1[i+1]-src2[i+1]; dst[i+1] = src1[i+1]-src2[i+1];
dst[i+2] = src1[i+2]-src2[i+2]; dst[i+2] = src1[i+2]-src2[i+2];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment