Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
8cbeb7cf
Commit
8cbeb7cf
authored
Mar 05, 2015
by
Yaowu Xu
Browse files
Prevent invalid memory access
Change-Id: I1b972c945274254d896d772d859840b2f8211b4f
parent
b573fef7
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_encodeframe.c
View file @
8cbeb7cf
...
...
@@ -748,8 +748,11 @@ static void choose_partitioning(VP9_COMP *cpi,
#else
const
BLOCK_SIZE
bs
=
get_plane_block_size
(
BLOCK_64X64
,
pd
);
#endif
uv_sad
=
cpi
->
fn_ptr
[
bs
].
sdf
(
p
->
src
.
buf
,
p
->
src
.
stride
,
pd
->
dst
.
buf
,
pd
->
dst
.
stride
);
if
(
bs
==
BLOCK_INVALID
)
uv_sad
=
INT_MAX
;
else
uv_sad
=
cpi
->
fn_ptr
[
bs
].
sdf
(
p
->
src
.
buf
,
p
->
src
.
stride
,
pd
->
dst
.
buf
,
pd
->
dst
.
stride
);
#if GLOBAL_MOTION
x
->
color_sensitivity
[
i
-
1
]
=
uv_sad
*
4
>
y_sad
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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