[x265] [PATCH] fix crash in x265_pixel_avg_w16_sse2
Min Chen
chenm003 at 163.com
Thu Oct 10 09:06:00 CEST 2013
# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1381388746 -28800
# Node ID 5125cf02a67733679ad3fb3f80ee94ed48d61dfc
# Parent 8ae52f2b159c8378e981e369aa15c4c36db48f7c
fix crash in x265_pixel_avg_w16_sse2
diff -r 8ae52f2b159c -r 5125cf02a677 source/Lib/TLibEncoder/TEncSearch.cpp
--- a/source/Lib/TLibEncoder/TEncSearch.cpp Thu Oct 10 01:15:11 2013 -0500
+++ b/source/Lib/TLibEncoder/TEncSearch.cpp Thu Oct 10 15:05:46 2013 +0800
@@ -2425,7 +2425,7 @@
ref0 = m_predYuv[0].getLumaAddr(partAddr);
ref1 = m_predYuv[1].getLumaAddr(partAddr);
- pixel avg[MAX_CU_SIZE * MAX_CU_SIZE];
+ ALIGN_VAR_32(pixel, avg[MAX_CU_SIZE * MAX_CU_SIZE]);
int partEnum = PartitionFromSizes(roiWidth, roiHeight);
primitives.pixelavg_pp[partEnum](avg, roiWidth, ref0, m_predYuv[0].getStride(), ref1, m_predYuv[1].getStride(), 32);
More information about the x265-devel
mailing list