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
733f4b05
Commit
733f4b05
authored
Feb 04, 2015
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avplay: Check format allocation inside decode_thread()
CC: libav-stable@libav.org Bug-Id: CID 1265718
parent
266f2411
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
avplay.c
avplay.c
+5
-0
No files found.
avplay.c
View file @
733f4b05
...
...
@@ -2257,6 +2257,11 @@ static int decode_thread(void *arg)
global_video_state
=
is
;
ic
=
avformat_alloc_context
();
if
(
!
ic
)
{
av_log
(
NULL
,
AV_LOG_FATAL
,
"Could not allocate context.
\n
"
);
ret
=
AVERROR
(
ENOMEM
);
goto
fail
;
}
ic
->
interrupt_callback
.
callback
=
decode_interrupt_cb
;
err
=
avformat_open_input
(
&
ic
,
is
->
filename
,
is
->
iformat
,
&
format_opts
);
if
(
err
<
0
)
{
...
...
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