You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/lossless_videodsp: fix output of add_hfyu_left_pred_int16_c()
It is now bitexact with the ssse3 and sse4.1 versions of the function. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -100,15 +100,15 @@ static int add_hfyu_left_pred_int16_c(uint16_t *dst, const uint16_t *src, unsign
|
|||||||
|
|
||||||
for(i=0; i<w-1; i++){
|
for(i=0; i<w-1; i++){
|
||||||
acc+= src[i];
|
acc+= src[i];
|
||||||
dst[i]= acc & mask;
|
dst[i]= acc &= mask;
|
||||||
i++;
|
i++;
|
||||||
acc+= src[i];
|
acc+= src[i];
|
||||||
dst[i]= acc & mask;
|
dst[i]= acc &= mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(; i<w; i++){
|
for(; i<w; i++){
|
||||||
acc+= src[i];
|
acc+= src[i];
|
||||||
dst[i]= acc & mask;
|
dst[i]= acc &= mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
|
Reference in New Issue
Block a user