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
3af7e7b5
Commit
3af7e7b5
authored
May 14, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vsrc_mandelbrot: use av_malloc_array()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
565c321c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vsrc_mandelbrot.c
libavfilter/vsrc_mandelbrot.c
+3
-3
No files found.
libavfilter/vsrc_mandelbrot.c
View file @
3af7e7b5
...
...
@@ -130,9 +130,9 @@ static av_cold int init(AVFilterContext *ctx)
mb
->
cache_allocated
=
mb
->
w
*
mb
->
h
*
3
;
mb
->
cache_used
=
0
;
mb
->
point_cache
=
av_malloc
(
sizeof
(
*
mb
->
point_cache
)
*
mb
->
cache_allocated
);
mb
->
next_cache
=
av_malloc
(
sizeof
(
*
mb
->
next_cache
)
*
mb
->
cache_allocated
);
mb
->
zyklus
=
av_malloc
(
sizeof
(
*
mb
->
zyklus
)
*
(
mb
->
maxiter
+
16
));
mb
->
point_cache
=
av_malloc
_array
(
mb
->
cache_allocated
,
sizeof
(
*
mb
->
point_cache
)
);
mb
->
next_cache
=
av_malloc
_array
(
mb
->
cache_allocated
,
sizeof
(
*
mb
->
next_cache
)
);
mb
->
zyklus
=
av_malloc
_array
(
mb
->
maxiter
+
16
,
sizeof
(
*
mb
->
zyklus
));
return
0
;
}
...
...
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