Commit 27d158b2 authored by Yaowu Xu's avatar Yaowu Xu

Fix an asan failure

SIMD convovle functions, such as filter_horiz_v4p_ssse3(), assume that
10-tap filters are defined using 12 taps with both end taps being 0.

BUG=aomedia:380

Change-Id: Id8a87ae8a1330bed0452441ab8345276857220af
parent daf03ee8
......@@ -89,24 +89,24 @@ DECLARE_ALIGNED(256, static const InterpKernel,
};
DECLARE_ALIGNED(256, static const int16_t,
sub_pel_filters_10sharp[SUBPEL_SHIFTS][10]) = {
sub_pel_filters_10sharp[SUBPEL_SHIFTS][12]) = {
// intfilt 0.85
{ 0, 0, 0, 0, 128, 0, 0, 0, 0, 0 },
{ 1, -2, 3, -7, 127, 8, -4, 2, -1, 1 },
{ 1, -3, 6, -13, 124, 18, -8, 4, -2, 1 },
{ 2, -4, 8, -18, 120, 28, -12, 6, -4, 2 },
{ 2, -5, 10, -21, 114, 38, -15, 8, -5, 2 },
{ 3, -6, 11, -24, 107, 49, -19, 10, -6, 3 },
{ 3, -7, 12, -25, 99, 59, -21, 11, -6, 3 },
{ 3, -7, 12, -25, 90, 70, -23, 12, -7, 3 },
{ 3, -7, 12, -25, 81, 81, -25, 12, -7, 3 },
{ 3, -7, 12, -23, 70, 90, -25, 12, -7, 3 },
{ 3, -6, 11, -21, 59, 99, -25, 12, -7, 3 },
{ 3, -6, 10, -19, 49, 107, -24, 11, -6, 3 },
{ 2, -5, 8, -15, 38, 114, -21, 10, -5, 2 },
{ 2, -4, 6, -12, 28, 120, -18, 8, -4, 2 },
{ 1, -2, 4, -8, 18, 124, -13, 6, -3, 1 },
{ 1, -1, 2, -4, 8, 127, -7, 3, -2, 1 },
{ 0, 0, 0, 0, 0, 128, 0, 0, 0, 0, 0, 0 },
{ 0, 1, -2, 3, -7, 127, 8, -4, 2, -1, 1, 0 },
{ 0, 1, -3, 6, -13, 124, 18, -8, 4, -2, 1, 0 },
{ 0, 2, -4, 8, -18, 120, 28, -12, 6, -4, 2, 0 },
{ 0, 2, -5, 10, -21, 114, 38, -15, 8, -5, 2, 0 },
{ 0, 3, -6, 11, -24, 107, 49, -19, 10, -6, 3, 0 },
{ 0, 3, -7, 12, -25, 99, 59, -21, 11, -6, 3, 0 },
{ 0, 3, -7, 12, -25, 90, 70, -23, 12, -7, 3, 0 },
{ 0, 3, -7, 12, -25, 81, 81, -25, 12, -7, 3, 0 },
{ 0, 3, -7, 12, -23, 70, 90, -25, 12, -7, 3, 0 },
{ 0, 3, -6, 11, -21, 59, 99, -25, 12, -7, 3, 0 },
{ 0, 3, -6, 10, -19, 49, 107, -24, 11, -6, 3, 0 },
{ 0, 2, -5, 8, -15, 38, 114, -21, 10, -5, 2, 0 },
{ 0, 2, -4, 6, -12, 28, 120, -18, 8, -4, 2, 0 },
{ 0, 1, -2, 4, -8, 18, 124, -13, 6, -3, 1, 0 },
{ 0, 1, -1, 2, -4, 8, 127, -7, 3, -2, 1, 0 },
};
DECLARE_ALIGNED(256, static const InterpKernel,
......@@ -250,7 +250,7 @@ static const InterpFilterParams
EIGHTTAP_REGULAR },
{ (const int16_t *)sub_pel_filters_8smooth, SUBPEL_TAPS, SUBPEL_SHIFTS,
EIGHTTAP_SMOOTH },
{ (const int16_t *)sub_pel_filters_10sharp, 10, SUBPEL_SHIFTS,
{ (const int16_t *)sub_pel_filters_10sharp, 12, SUBPEL_SHIFTS,
MULTITAP_SHARP },
{ (const int16_t *)sub_pel_filters_8smooth2, SUBPEL_TAPS, SUBPEL_SHIFTS,
EIGHTTAP_SMOOTH2 },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment