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
9e2dabed
Commit
9e2dabed
authored
May 14, 2011
by
Can Wu
Committed by
Anton Khirnov
May 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: check AVIOContext malloc failure
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
7d4c4394
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
aviobuf.c
libavformat/aviobuf.c
+2
-0
No files found.
libavformat/aviobuf.c
View file @
9e2dabed
...
@@ -113,6 +113,8 @@ AVIOContext *avio_alloc_context(
...
@@ -113,6 +113,8 @@ AVIOContext *avio_alloc_context(
int64_t
(
*
seek
)(
void
*
opaque
,
int64_t
offset
,
int
whence
))
int64_t
(
*
seek
)(
void
*
opaque
,
int64_t
offset
,
int
whence
))
{
{
AVIOContext
*
s
=
av_mallocz
(
sizeof
(
AVIOContext
));
AVIOContext
*
s
=
av_mallocz
(
sizeof
(
AVIOContext
));
if
(
!
s
)
return
NULL
;
ffio_init_context
(
s
,
buffer
,
buffer_size
,
write_flag
,
opaque
,
ffio_init_context
(
s
,
buffer
,
buffer_size
,
write_flag
,
opaque
,
read_packet
,
write_packet
,
seek
);
read_packet
,
write_packet
,
seek
);
return
s
;
return
s
;
...
...
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