From 8fb2048e9fdb383503be75597f07658a0ca479e2 Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Thu, 24 Sep 2015 10:19:17 -0700 Subject: [PATCH] Fix nv12 64 bit gcc increment. Should be 16 bytes, but was 0x16 causing memory corruption. TBR=harryjin@google.com BUG=libyuv:492 Review URL: https://codereview.chromium.org/1368693002 . --- README.chromium | 2 +- include/libyuv/version.h | 2 +- source/row_gcc.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.chromium b/README.chromium index 6bb4a5228..fa0c3137d 100644 --- a/README.chromium +++ b/README.chromium @@ -1,6 +1,6 @@ Name: libyuv URL: http://code.google.com/p/libyuv/ -Version: 1490 +Version: 1492 License: BSD License File: LICENSE diff --git a/include/libyuv/version.h b/include/libyuv/version.h index f43fc7b54..4081c214a 100644 --- a/include/libyuv/version.h +++ b/include/libyuv/version.h @@ -11,6 +11,6 @@ #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT #define INCLUDE_LIBYUV_VERSION_H_ -#define LIBYUV_VERSION 1490 +#define LIBYUV_VERSION 1492 #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT diff --git a/source/row_gcc.cc b/source/row_gcc.cc index dc1e62378..42666cca7 100644 --- a/source/row_gcc.cc +++ b/source/row_gcc.cc @@ -1841,7 +1841,7 @@ void OMITFP I422ToRGBARow_SSSE3(const uint8* y_buf, // Read 8 UV from NV12, upsample to 16 UV. #define READNV12_AVX2 \ "vmovdqu " MEMACCESS([uv_buf]) ",%%xmm0 \n" \ - "lea " MEMLEA(0x16, [uv_buf]) ",%[uv_buf] \n" \ + "lea " MEMLEA(0x10, [uv_buf]) ",%[uv_buf] \n" \ "vpermq $0xd8,%%ymm0,%%ymm0 \n" \ "vpunpcklwd %%ymm0,%%ymm0,%%ymm0 \n" \ "vmovdqu " MEMACCESS([y_buf]) ",%%xmm4 \n" \