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
a7fa5ce6
Commit
a7fa5ce6
authored
Apr 26, 2012
by
Jordi Ortiz
Committed by
Diego Biurrun
Apr 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libschroedingerdec: check malloc
Signed-off-by:
Diego Biurrun
<
diego@biurrun.de
>
parent
3b52e9da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
libschroedingerdec.c
libavcodec/libschroedingerdec.c
+5
-0
No files found.
libavcodec/libschroedingerdec.c
View file @
a7fa5ce6
...
...
@@ -106,6 +106,11 @@ static SchroBuffer *FindNextSchroParseUnit(SchroParseUnitContext *parse_ctx)
return
NULL
;
in_buf
=
av_malloc
(
next_pu_offset
);
if
(
!
in_buf
)
{
av_log
(
parse_ctx
,
AV_LOG_ERROR
,
"Unable to allocate input buffer
\n
"
);
return
NULL
;
}
memcpy
(
in_buf
,
parse_ctx
->
buf
,
next_pu_offset
);
enc_buf
=
schro_buffer_new_with_data
(
in_buf
,
next_pu_offset
);
enc_buf
->
free
=
libschroedinger_decode_buffer_free
;
...
...
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