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
5a831151
Commit
5a831151
authored
Feb 04, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffv1: check for malloc failure
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b77d94dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
ffv1.c
libavcodec/ffv1.c
+4
-0
No files found.
libavcodec/ffv1.c
View file @
5a831151
...
@@ -123,6 +123,10 @@ av_cold int ffv1_init_slice_contexts(FFV1Context *f)
...
@@ -123,6 +123,10 @@ av_cold int ffv1_init_slice_contexts(FFV1Context *f)
int
sxe
=
f
->
avctx
->
width
*
(
sx
+
1
)
/
f
->
num_h_slices
;
int
sxe
=
f
->
avctx
->
width
*
(
sx
+
1
)
/
f
->
num_h_slices
;
int
sys
=
f
->
avctx
->
height
*
sy
/
f
->
num_v_slices
;
int
sys
=
f
->
avctx
->
height
*
sy
/
f
->
num_v_slices
;
int
sye
=
f
->
avctx
->
height
*
(
sy
+
1
)
/
f
->
num_v_slices
;
int
sye
=
f
->
avctx
->
height
*
(
sy
+
1
)
/
f
->
num_v_slices
;
if
(
!
fs
)
return
AVERROR
(
ENOMEM
);
f
->
slice_context
[
i
]
=
fs
;
f
->
slice_context
[
i
]
=
fs
;
memcpy
(
fs
,
f
,
sizeof
(
*
fs
));
memcpy
(
fs
,
f
,
sizeof
(
*
fs
));
memset
(
fs
->
rc_stat2
,
0
,
sizeof
(
fs
->
rc_stat2
));
memset
(
fs
->
rc_stat2
,
0
,
sizeof
(
fs
->
rc_stat2
));
...
...
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