Fix overflow in temporal_filter_apply_sse2().

The accumulator array is an integer array, so use paddd instead of paddw
to add values to it. Fixes overflows when using large --arnr-maxframes
(>8) values.

Change-Id: Iad83794caa02400a65f3ab5760f2517e082d66ae
This commit is contained in:
Ronald S. Bultje 2011-04-21 16:35:02 -04:00
parent 73c3d32705
commit 496bcbb0de

View File

@ -164,10 +164,10 @@ temporal_filter_apply_load_finished:
movdqa xmm6, [rdi+32]
movdqa xmm7, [rdi+48]
; += modifier
paddw xmm4, xmm0
paddw xmm5, xmm2
paddw xmm6, xmm1
paddw xmm7, xmm3
paddd xmm4, xmm0
paddd xmm5, xmm2
paddd xmm6, xmm1
paddd xmm7, xmm3
; write back
movdqa [rdi], xmm4
movdqa [rdi+16], xmm5