Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
14e2e40f
Commit
14e2e40f
authored
May 14, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_hqdn3: use av_malloc_array()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
0aac9b76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vf_hqdn3d.c
libavfilter/vf_hqdn3d.c
+2
-2
No files found.
libavfilter/vf_hqdn3d.c
View file @
14e2e40f
...
...
@@ -133,7 +133,7 @@ static void denoise_depth(HQDN3DContext *s,
uint16_t
*
frame_ant
=
*
frame_ant_ptr
;
if
(
!
frame_ant
)
{
uint8_t
*
frame_src
=
src
;
*
frame_ant_ptr
=
frame_ant
=
av_malloc
(
w
*
h
*
sizeof
(
uint16_t
));
*
frame_ant_ptr
=
frame_ant
=
av_malloc
_array
(
w
,
h
*
sizeof
(
uint16_t
));
for
(
y
=
0
;
y
<
h
;
y
++
,
src
+=
sstride
,
frame_ant
+=
w
)
for
(
x
=
0
;
x
<
w
;
x
++
)
frame_ant
[
x
]
=
LOAD
(
x
);
...
...
@@ -259,7 +259,7 @@ static int config_input(AVFilterLink *inlink)
s
->
vsub
=
desc
->
log2_chroma_h
;
s
->
depth
=
desc
->
comp
[
0
].
depth_minus1
+
1
;
s
->
line
=
av_malloc
(
inlink
->
w
*
sizeof
(
*
s
->
line
));
s
->
line
=
av_malloc
_array
(
inlink
->
w
,
sizeof
(
*
s
->
line
));
if
(
!
s
->
line
)
return
AVERROR
(
ENOMEM
);
...
...
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