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
e166e25f
Commit
e166e25f
authored
Dec 01, 2016
by
Debargha Mukherjee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a crash due to a large stack allocation
Change-Id: Icba19c399531a6e50ab466b606b8921f9b57eae9
parent
aa229d6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
av1/common/restoration.c
av1/common/restoration.c
+4
-2
av1/common/restoration.h
av1/common/restoration.h
+1
-1
No files found.
av1/common/restoration.c
View file @
e166e25f
...
...
@@ -640,7 +640,8 @@ static void loop_sgrproj_filter_tile(uint8_t *data, int tile_idx, int width,
int
i
,
j
;
int
h_start
,
h_end
,
v_start
,
v_end
;
uint8_t
*
data_p
;
int64_t
dat
[
RESTORATION_TILEPELS_MAX
];
int64_t
*
dat
=
(
int64_t
*
)
tmpbuf
;
tmpbuf
=
(
uint8_t
*
)
tmpbuf
+
RESTORATION_TILEPELS_MAX
*
sizeof
(
*
dat
);
if
(
rst
->
rsi
->
sgrproj_info
[
tile_idx
].
level
==
0
)
return
;
av1_get_rest_tile_limits
(
tile_idx
,
0
,
0
,
rst
->
nhtiles
,
rst
->
nvtiles
,
...
...
@@ -876,7 +877,8 @@ static void loop_sgrproj_filter_tile_highbd(uint16_t *data, int tile_idx,
int
i
,
j
;
int
h_start
,
h_end
,
v_start
,
v_end
;
uint16_t
*
data_p
;
int64_t
dat
[
RESTORATION_TILEPELS_MAX
];
int64_t
*
dat
=
(
int64_t
*
)
tmpbuf
;
tmpbuf
=
(
uint8_t
*
)
tmpbuf
+
RESTORATION_TILEPELS_MAX
*
sizeof
(
*
dat
);
if
(
rst
->
rsi
->
sgrproj_info
[
tile_idx
].
level
==
0
)
return
;
av1_get_rest_tile_limits
(
tile_idx
,
0
,
0
,
rst
->
nhtiles
,
rst
->
nvtiles
,
...
...
av1/common/restoration.h
View file @
e166e25f
...
...
@@ -25,7 +25,7 @@ extern "C" {
#define RESTORATION_TILESIZE_BIG 256
#define RESTORATION_TILEPELS_MAX \
(RESTORATION_TILESIZE_BIG * RESTORATION_TILESIZE_BIG * 9 / 4)
#define SGRPROJ_TMPBUF_SIZE (RESTORATION_TILEPELS_MAX *
5
* 8)
#define SGRPROJ_TMPBUF_SIZE (RESTORATION_TILEPELS_MAX *
6
* 8)
#define SGRPROJ_PARAMS_BITS 3
#define SGRPROJ_PARAMS (1 << SGRPROJ_PARAMS_BITS)
...
...
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