From 042a82ca374b491903036872ebd487c5ceb17a63 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 19 Jun 2014 05:53:41 +0200 Subject: [PATCH] avcodec/x86/lossless_videodsp: Fix size of values read for left/left_top Signed-off-by: Michael Niedermayer --- libavcodec/x86/lossless_videodsp.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/x86/lossless_videodsp.asm b/libavcodec/x86/lossless_videodsp.asm index 43958be5c9..e6c23e7985 100644 --- a/libavcodec/x86/lossless_videodsp.asm +++ b/libavcodec/x86/lossless_videodsp.asm @@ -287,8 +287,8 @@ cglobal sub_hfyu_median_pred_int16, 7,7,0, dst, src1, src2, mask, w, left, left_ movq mm2, [src2q + maskq - 2] cmp maskq, wq jb .loop - mov maskd, [src1q + wq - 2] + movzx maskd, word [src1q + wq - 2] mov [left_topq], maskd - mov maskd, [src2q + wq - 2] + movzx maskd, word [src2q + wq - 2] mov [leftq], maskd RET