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
7de2cea8
Commit
7de2cea8
authored
Apr 23, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/motionpixels: use av_mallocz_array()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c1611340
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
motionpixels.c
libavcodec/motionpixels.c
+3
-3
No files found.
libavcodec/motionpixels.c
View file @
7de2cea8
...
...
@@ -77,10 +77,10 @@ static av_cold int mp_decode_init(AVCodecContext *avctx)
motionpixels_tableinit
();
mp
->
avctx
=
avctx
;
ff_dsputil_init
(
&
mp
->
dsp
,
avctx
);
mp
->
changes_map
=
av_mallocz
(
avctx
->
width
*
h4
);
mp
->
changes_map
=
av_mallocz
_array
(
avctx
->
width
,
h4
);
mp
->
offset_bits_len
=
av_log2
(
avctx
->
width
*
avctx
->
height
)
+
1
;
mp
->
vpt
=
av_mallocz
(
avctx
->
height
*
sizeof
(
YuvPixel
));
mp
->
hpt
=
av_mallocz
(
h4
*
w4
/
16
*
sizeof
(
YuvPixel
));
mp
->
vpt
=
av_mallocz
_array
(
avctx
->
height
,
sizeof
(
YuvPixel
));
mp
->
hpt
=
av_mallocz
_array
(
h4
/
4
,
w4
/
4
*
sizeof
(
YuvPixel
));
if
(
!
mp
->
changes_map
||
!
mp
->
vpt
||
!
mp
->
hpt
)
{
av_freep
(
&
mp
->
changes_map
);
av_freep
(
&
mp
->
vpt
);
...
...
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