Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
c7cfe7a9
Commit
c7cfe7a9
authored
Oct 02, 2014
by
Debargha Mukherjee
Committed by
Gerrit Code Review
Oct 02, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Fix invalid memory access in inter prediction (issue 853)."
parents
a0befb93
befc36d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
vp9/common/vp9_convolve.c
vp9/common/vp9_convolve.c
+4
-8
No files found.
vp9/common/vp9_convolve.c
View file @
c7cfe7a9
...
...
@@ -130,16 +130,14 @@ static void convolve(const uint8_t *src, ptrdiff_t src_stride,
// --Require an additional SUBPEL_TAPS rows for the 8-tap filter tails.
// --((64 - 1) * 32 + 15) >> 4 + 8 = 135.
uint8_t
temp
[
135
*
64
];
int
intermediate_height
=
(((
h
-
1
)
*
y_step_q4
+
15
)
>>
4
)
+
SUBPEL_TAPS
;
int
intermediate_height
=
(((
h
-
1
)
*
y_step_q4
+
y0_q4
)
>>
SUBPEL_BITS
)
+
SUBPEL_TAPS
;
assert
(
w
<=
64
);
assert
(
h
<=
64
);
assert
(
y_step_q4
<=
32
);
assert
(
x_step_q4
<=
32
);
if
(
intermediate_height
<
h
)
intermediate_height
=
h
;
convolve_horiz
(
src
-
src_stride
*
(
SUBPEL_TAPS
/
2
-
1
),
src_stride
,
temp
,
64
,
x_filters
,
x0_q4
,
x_step_q4
,
w
,
intermediate_height
);
convolve_vert
(
temp
+
64
*
(
SUBPEL_TAPS
/
2
-
1
),
64
,
dst
,
dst_stride
,
...
...
@@ -407,16 +405,14 @@ static void high_convolve(const uint8_t *src, ptrdiff_t src_stride,
// --Require an additional SUBPEL_TAPS rows for the 8-tap filter tails.
// --((64 - 1) * 32 + 15) >> 4 + 8 = 135.
uint16_t
temp
[
64
*
135
];
int
intermediate_height
=
(((
h
-
1
)
*
y_step_q4
+
15
)
>>
4
)
+
SUBPEL_TAPS
;
int
intermediate_height
=
(((
h
-
1
)
*
y_step_q4
+
y0_q4
)
>>
SUBPEL_BITS
)
+
SUBPEL_TAPS
;
assert
(
w
<=
64
);
assert
(
h
<=
64
);
assert
(
y_step_q4
<=
32
);
assert
(
x_step_q4
<=
32
);
if
(
intermediate_height
<
h
)
intermediate_height
=
h
;
high_convolve_horiz
(
src
-
src_stride
*
(
SUBPEL_TAPS
/
2
-
1
),
src_stride
,
CONVERT_TO_BYTEPTR
(
temp
),
64
,
x_filters
,
x0_q4
,
x_step_q4
,
w
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment