Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
7c85e3ed
Commit
7c85e3ed
authored
Jan 14, 2016
by
Hannes Domani
Committed by
Jean-Baptiste Kempf
Jan 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: use av_malloc() for io buffer (fix #16379)
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
25f25f54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/demux/avformat/demux.c
modules/demux/avformat/demux.c
+3
-3
No files found.
modules/demux/avformat/demux.c
View file @
7c85e3ed
...
...
@@ -286,7 +286,7 @@ int OpenDemux( vlc_object_t *p_this )
p_sys
->
p_title
=
NULL
;
/* Create I/O wrapper */
unsigned
char
*
p_io_buffer
=
malloc
(
AVFORMAT_IOBUFFER_SIZE
);
unsigned
char
*
p_io_buffer
=
av_
malloc
(
AVFORMAT_IOBUFFER_SIZE
);
if
(
!
p_io_buffer
)
{
free
(
psz_url
);
...
...
@@ -297,7 +297,7 @@ int OpenDemux( vlc_object_t *p_this )
p_sys
->
ic
=
avformat_alloc_context
();
if
(
!
p_sys
->
ic
)
{
free
(
p_io_buffer
);
av_
free
(
p_io_buffer
);
free
(
psz_url
);
CloseDemux
(
p_this
);
return
VLC_ENOMEM
;
...
...
@@ -307,7 +307,7 @@ int OpenDemux( vlc_object_t *p_this )
AVFORMAT_IOBUFFER_SIZE
,
0
,
p_demux
,
IORead
,
NULL
,
IOSeek
);
if
(
!
pb
)
{
free
(
p_io_buffer
);
av_
free
(
p_io_buffer
);
free
(
psz_url
);
CloseDemux
(
p_this
);
return
VLC_ENOMEM
;
...
...
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