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
eeb3fb9e
Commit
eeb3fb9e
authored
Aug 16, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffv1enc: check for malloc failure
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
faf7c356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ffv1enc.c
libavcodec/ffv1enc.c
+2
-0
No files found.
libavcodec/ffv1enc.c
View file @
eeb3fb9e
...
@@ -529,6 +529,8 @@ static int write_extradata(FFV1Context *f)
...
@@ -529,6 +529,8 @@ static int write_extradata(FFV1Context *f)
f
->
avctx
->
extradata_size
=
10000
+
4
+
f
->
avctx
->
extradata_size
=
10000
+
4
+
(
11
*
11
*
5
*
5
*
5
+
11
*
11
*
11
)
*
32
;
(
11
*
11
*
5
*
5
*
5
+
11
*
11
*
11
)
*
32
;
f
->
avctx
->
extradata
=
av_malloc
(
f
->
avctx
->
extradata_size
);
f
->
avctx
->
extradata
=
av_malloc
(
f
->
avctx
->
extradata_size
);
if
(
!
f
->
avctx
->
extradata
)
return
AVERROR
(
ENOMEM
);
ff_init_range_encoder
(
c
,
f
->
avctx
->
extradata
,
f
->
avctx
->
extradata_size
);
ff_init_range_encoder
(
c
,
f
->
avctx
->
extradata
,
f
->
avctx
->
extradata_size
);
ff_build_rac_states
(
c
,
0
.
05
*
(
1LL
<<
32
),
256
-
8
);
ff_build_rac_states
(
c
,
0
.
05
*
(
1LL
<<
32
),
256
-
8
);
...
...
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