x86/lossless_videodsp: don't overread the dst buffer in ff_add_left_pred_unaligned_avx2

Fixes valgrind

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2017-12-10 00:38:05 -03:00
parent f20c8f6ec9
commit a4fc63c0f9
1 changed files with 1 additions and 2 deletions

View File

@ -154,8 +154,7 @@ MEDIAN_PRED
add wq, mmsize
jl %%.loop
%if mmsize == 32
mov eax, [dstq -1]
and eax, 0xff
movzx eax, byte [dstq - 1]
%else;
mov eax, mmsize-1
sub eax, wd