summaryrefslogtreecommitdiff
path: root/vp8/common/x86/vp8_asm_stubs.c
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2013-09-26 09:20:15 -0700
committerYaowu Xu <yaowu@google.com>2013-09-26 09:20:15 -0700
commitda0ce28fe3a73905b2cd7a07f3298a229a16c03d (patch)
tree1a7b53c05c137ee608a18a94ae0fb0ce2298a944 /vp8/common/x86/vp8_asm_stubs.c
parent7755b9dada8881660826085d8ee8d9034a5c7c53 (diff)
downloadlibvpx-da0ce28fe3a73905b2cd7a07f3298a229a16c03d.tar
libvpx-da0ce28fe3a73905b2cd7a07f3298a229a16c03d.tar.gz
libvpx-da0ce28fe3a73905b2cd7a07f3298a229a16c03d.tar.bz2
libvpx-da0ce28fe3a73905b2cd7a07f3298a229a16c03d.zip
fixed integer overflow warnings
Jenkins warns on left shift of negative numbers and non-aligned read of int. This commit fixed the two issues. Change-Id: I389a7fb6a572c643902e40a4c10fefef94500d2c
Diffstat (limited to 'vp8/common/x86/vp8_asm_stubs.c')
-rw-r--r--vp8/common/x86/vp8_asm_stubs.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/vp8/common/x86/vp8_asm_stubs.c b/vp8/common/x86/vp8_asm_stubs.c
index c0416b7e6..b40929381 100644
--- a/vp8/common/x86/vp8_asm_stubs.c
+++ b/vp8/common/x86/vp8_asm_stubs.c
@@ -611,16 +611,12 @@ void vp8_sixtap_predict4x4_ssse3
for (r = 0; r < 4; r++)
{
- #if !(CONFIG_FAST_UNALIGNED)
dst_ptr[0] = src_ptr[0];
dst_ptr[1] = src_ptr[1];
dst_ptr[2] = src_ptr[2];
dst_ptr[3] = src_ptr[3];
- #else
- *(uint32_t *)dst_ptr = *(uint32_t *)src_ptr ;
- #endif
- dst_ptr += dst_pitch;
- src_ptr += src_pixels_per_line;
+ dst_ptr += dst_pitch;
+ src_ptr += src_pixels_per_line;
}
}
}