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
b5af9d29
Commit
b5af9d29
authored
Jan 10, 2014
by
hkuang
Committed by
Gerrit Code Review
Jan 10, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Fix Issue #679: vp9 C loop filter produces valgrind warning."
parents
ed364b21
66c6f7bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
vpx_scale/generic/yv12config.c
vpx_scale/generic/yv12config.c
+13
-3
No files found.
vpx_scale/generic/yv12config.c
View file @
b5af9d29
...
...
@@ -175,6 +175,11 @@ int vp9_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
return
-
1
;
}
// This memset is needed for fixing valgrind error from C loop filter
// due to access uninitialized memory in frame border. It could be
// removed if border is totally removed.
vpx_memset
(
ext_fb
->
data
,
0
,
ext_fb
->
size
);
ybf
->
buffer_alloc
=
yv12_align_addr
(
ext_fb
->
data
,
32
);
}
}
else
{
...
...
@@ -183,16 +188,21 @@ int vp9_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
if
(
ybf
->
buffer_alloc
)
vpx_free
(
ybf
->
buffer_alloc
);
ybf
->
buffer_alloc
=
vpx_memalign
(
32
,
frame_size
);
if
(
!
ybf
->
buffer_alloc
)
return
-
1
;
ybf
->
buffer_alloc_sz
=
frame_size
;
// This memset is needed for fixing valgrind error from C loop filter
// due to access uninitialized memory in frame boarder. It could be
// removed if border is totally removed.
vpx_memset
(
ybf
->
buffer_alloc
,
0
,
ybf
->
buffer_alloc_sz
);
}
if
(
ybf
->
buffer_alloc_sz
<
frame_size
)
return
-
1
;
}
if
(
!
ybf
->
buffer_alloc
)
return
-
1
;
/* Only support allocating buffers that have a border that's a multiple
* of 32. The border restriction is required to get 16-byte alignment of
* the start of the chroma rows without introducing an arbitrary gap
...
...
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