Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
fc377967
Commit
fc377967
authored
Aug 31, 2017
by
Yaowu Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid operation on invalid ref_row
BUG=aomedia:718 Change-Id: Ib3fc5e83dd915d6869ee2d7e0bf40427111c6499
parent
8a8cd6b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
av1/common/txb_common.h
av1/common/txb_common.h
+1
-1
No files found.
av1/common/txb_common.h
View file @
fc377967
...
...
@@ -116,9 +116,9 @@ static INLINE int get_level_count_mag(int *mag, const tran_low_t *tcoeffs,
for
(
int
idx
=
0
;
idx
<
nb_num
;
++
idx
)
{
const
int
ref_row
=
row
+
nb_offset
[
idx
][
0
];
const
int
ref_col
=
col
+
nb_offset
[
idx
][
1
];
const
int
pos
=
(
ref_row
<<
bwl
)
+
ref_col
;
if
(
ref_row
<
0
||
ref_col
<
0
||
ref_row
>=
height
||
ref_col
>=
stride
)
continue
;
const
int
pos
=
(
ref_row
<<
bwl
)
+
ref_col
;
tran_low_t
abs_coeff
=
abs
(
tcoeffs
[
pos
]);
count
+=
abs_coeff
>
level
;
if
(
nb_offset
[
idx
][
0
]
>=
0
&&
nb_offset
[
idx
][
1
]
>=
0
)
...
...
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