Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
736114f4
Commit
736114f4
authored
11 years ago
by
Jim Bankoski
Browse files
Options
Downloads
Patches
Plain Diff
fix loop filter setup_mask could reach out of bounds issue
Change-Id: Ic8446c4f26b6782a6dc482c19ea73c77646df418
parent
170be56a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp9/common/vp9_loopfilter.c
+12
-0
12 additions, 0 deletions
vp9/common/vp9_loopfilter.c
with
12 additions
and
0 deletions
vp9/common/vp9_loopfilter.c
+
12
−
0
View file @
736114f4
...
...
@@ -603,11 +603,15 @@ static void setup_mask(VP9_COMMON *const cm, const int mi_row, const int mi_col,
case
BLOCK_64X32
:
build_masks
(
lfi_n
,
mip
,
0
,
0
,
lfm
);
mip2
=
mip
+
mode_info_stride
*
4
;
if
(
4
>=
max_rows
)
break
;
build_masks
(
lfi_n
,
mip2
,
32
,
8
,
lfm
);
break
;
case
BLOCK_32X64
:
build_masks
(
lfi_n
,
mip
,
0
,
0
,
lfm
);
mip2
=
mip
+
4
;
if
(
4
>=
max_cols
)
break
;
build_masks
(
lfi_n
,
mip2
,
4
,
2
,
lfm
);
break
;
default:
...
...
@@ -624,11 +628,15 @@ static void setup_mask(VP9_COMMON *const cm, const int mi_row, const int mi_col,
break
;
case
BLOCK_32X16
:
build_masks
(
lfi_n
,
mip
,
shift_y
,
shift_uv
,
lfm
);
if
(
mi_32_row_offset
+
2
>=
max_rows
)
continue
;
mip2
=
mip
+
mode_info_stride
*
2
;
build_masks
(
lfi_n
,
mip2
,
shift_y
+
16
,
shift_uv
+
4
,
lfm
);
break
;
case
BLOCK_16X32
:
build_masks
(
lfi_n
,
mip
,
shift_y
,
shift_uv
,
lfm
);
if
(
mi_32_col_offset
+
2
>=
max_cols
)
continue
;
mip2
=
mip
+
2
;
build_masks
(
lfi_n
,
mip2
,
shift_y
+
2
,
shift_uv
+
1
,
lfm
);
break
;
...
...
@@ -650,11 +658,15 @@ static void setup_mask(VP9_COMMON *const cm, const int mi_row, const int mi_col,
break
;
case
BLOCK_16X8
:
build_masks
(
lfi_n
,
mip
,
shift_y
,
shift_uv
,
lfm
);
if
(
mi_16_row_offset
+
1
>=
max_rows
)
continue
;
mip2
=
mip
+
mode_info_stride
;
build_y_mask
(
lfi_n
,
mip2
,
shift_y
+
8
,
lfm
);
break
;
case
BLOCK_8X16
:
build_masks
(
lfi_n
,
mip
,
shift_y
,
shift_uv
,
lfm
);
if
(
mi_16_col_offset
+
1
>=
max_cols
)
continue
;
mip2
=
mip
+
1
;
build_y_mask
(
lfi_n
,
mip2
,
shift_y
+
1
,
lfm
);
break
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment