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
e4c180c0
Commit
e4c180c0
authored
Apr 08, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/a64multienc: use av_malloc(z)_array()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
53487268
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
a64multienc.c
libavcodec/a64multienc.c
+2
-2
No files found.
libavcodec/a64multienc.c
View file @
e4c180c0
...
@@ -220,9 +220,9 @@ static av_cold int a64multi_encode_init(AVCodecContext *avctx)
...
@@ -220,9 +220,9 @@ static av_cold int a64multi_encode_init(AVCodecContext *avctx)
a64_palette
[
mc_colors
[
a
]][
2
]
*
0
.
11
;
a64_palette
[
mc_colors
[
a
]][
2
]
*
0
.
11
;
}
}
if
(
!
(
c
->
mc_meta_charset
=
av_malloc
(
32000
*
c
->
mc_lifetime
*
sizeof
(
int
)))
||
if
(
!
(
c
->
mc_meta_charset
=
av_malloc
_array
(
c
->
mc_lifetime
,
32000
*
sizeof
(
int
)))
||
!
(
c
->
mc_best_cb
=
av_malloc
(
CHARSET_CHARS
*
32
*
sizeof
(
int
)))
||
!
(
c
->
mc_best_cb
=
av_malloc
(
CHARSET_CHARS
*
32
*
sizeof
(
int
)))
||
!
(
c
->
mc_charmap
=
av_mallocz
(
1000
*
c
->
mc_lifetime
*
sizeof
(
int
)))
||
!
(
c
->
mc_charmap
=
av_mallocz
_array
(
c
->
mc_lifetime
,
1000
*
sizeof
(
int
)))
||
!
(
c
->
mc_colram
=
av_mallocz
(
CHARSET_CHARS
*
sizeof
(
uint8_t
)))
||
!
(
c
->
mc_colram
=
av_mallocz
(
CHARSET_CHARS
*
sizeof
(
uint8_t
)))
||
!
(
c
->
mc_charset
=
av_malloc
(
0x800
*
(
INTERLACED
+
1
)
*
sizeof
(
uint8_t
))))
{
!
(
c
->
mc_charset
=
av_malloc
(
0x800
*
(
INTERLACED
+
1
)
*
sizeof
(
uint8_t
))))
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Failed to allocate buffer memory.
\n
"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Failed to allocate buffer memory.
\n
"
);
...
...
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