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
d3aa307d
Commit
d3aa307d
authored
Mar 21, 2015
by
Federico Tomassetti
Committed by
Luca Barbato
Mar 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rmenc: Check memory allocation
Bug-Id: CID 1257832 Signed-off-by:
Luca Barbato
<
lu_zero@gentoo.org
>
parent
7ebb3022
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
rmenc.c
libavformat/rmenc.c
+2
-0
No files found.
libavformat/rmenc.c
View file @
d3aa307d
...
@@ -363,6 +363,8 @@ static int rm_write_audio(AVFormatContext *s, const uint8_t *buf, int size, int
...
@@ -363,6 +363,8 @@ static int rm_write_audio(AVFormatContext *s, const uint8_t *buf, int size, int
/* XXX: suppress this malloc */
/* XXX: suppress this malloc */
buf1
=
av_malloc
(
size
*
sizeof
(
uint8_t
));
buf1
=
av_malloc
(
size
*
sizeof
(
uint8_t
));
if
(
!
buf1
)
return
AVERROR
(
ENOMEM
);
write_packet_header
(
s
,
stream
,
size
,
!!
(
flags
&
AV_PKT_FLAG_KEY
));
write_packet_header
(
s
,
stream
,
size
,
!!
(
flags
&
AV_PKT_FLAG_KEY
));
...
...
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