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
e592bf3d
Commit
e592bf3d
authored
Jul 06, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vsrc_cellauto: Use av_mallocz_array()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d90ad5b2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vsrc_cellauto.c
libavfilter/vsrc_cellauto.c
+2
-2
No files found.
libavfilter/vsrc_cellauto.c
View file @
e592bf3d
...
@@ -122,7 +122,7 @@ static int init_pattern_from_string(AVFilterContext *ctx)
...
@@ -122,7 +122,7 @@ static int init_pattern_from_string(AVFilterContext *ctx)
cellauto
->
h
=
(
double
)
cellauto
->
w
*
M_PHI
;
cellauto
->
h
=
(
double
)
cellauto
->
w
*
M_PHI
;
}
}
cellauto
->
buf
=
av_mallocz
(
sizeof
(
uint8_t
)
*
cellauto
->
w
*
cellauto
->
h
);
cellauto
->
buf
=
av_mallocz
_array
(
sizeof
(
uint8_t
)
*
cellauto
->
w
,
cellauto
->
h
);
if
(
!
cellauto
->
buf
)
if
(
!
cellauto
->
buf
)
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
...
@@ -182,7 +182,7 @@ static av_cold int init(AVFilterContext *ctx)
...
@@ -182,7 +182,7 @@ static av_cold int init(AVFilterContext *ctx)
/* fill the first row randomly */
/* fill the first row randomly */
int
i
;
int
i
;
cellauto
->
buf
=
av_mallocz
(
sizeof
(
uint8_t
)
*
cellauto
->
w
*
cellauto
->
h
);
cellauto
->
buf
=
av_mallocz
_array
(
sizeof
(
uint8_t
)
*
cellauto
->
w
,
cellauto
->
h
);
if
(
!
cellauto
->
buf
)
if
(
!
cellauto
->
buf
)
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
if
(
cellauto
->
random_seed
==
-
1
)
if
(
cellauto
->
random_seed
==
-
1
)
...
...
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