diff options
author | James Almer <jamrial@gmail.com> | 2017-12-10 00:38:05 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-12-10 00:38:05 -0300 |
commit | a4fc63c0f9eb803340c47479dcc5403b6fe3316d (patch) | |
tree | e1bf723e41fe31149ee5a54e26d098237e31e57e /libavcodec/x86 | |
parent | f20c8f6ec9ec982d15a8acc0a38103919780b48a (diff) | |
download | ffmpeg-a4fc63c0f9eb803340c47479dcc5403b6fe3316d.tar.gz |
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>
Diffstat (limited to 'libavcodec/x86')
-rw-r--r-- | libavcodec/x86/lossless_videodsp.asm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/x86/lossless_videodsp.asm b/libavcodec/x86/lossless_videodsp.asm index 9a169fe314..74fc95e84b 100644 --- a/libavcodec/x86/lossless_videodsp.asm +++ b/libavcodec/x86/lossless_videodsp.asm @@ -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 |