Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
97020e0c
Commit
97020e0c
authored
Aug 27, 2015
by
Hannes Domani
Committed by
Jean-Baptiste Kempf
Aug 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: fix memory leak
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
26e38c7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/demux/avformat/demux.c
modules/demux/avformat/demux.c
+2
-1
No files found.
modules/demux/avformat/demux.c
View file @
97020e0c
...
...
@@ -270,7 +270,7 @@ int OpenDemux( vlc_object_t *p_this )
p_sys
->
io_buffer
=
xmalloc
(
p_sys
->
io_buffer_size
);
p_sys
->
ic
=
avformat_alloc_context
();
p_sys
->
ic
->
pb
=
avio_alloc_context
(
p_sys
->
io_buffer
,
AVIOContext
*
pb
=
p_sys
->
ic
->
pb
=
avio_alloc_context
(
p_sys
->
io_buffer
,
p_sys
->
io_buffer_size
,
0
,
p_demux
,
IORead
,
NULL
,
IOSeek
);
p_sys
->
ic
->
pb
->
seekable
=
b_can_seek
?
AVIO_SEEKABLE_NORMAL
:
0
;
error
=
avformat_open_input
(
&
p_sys
->
ic
,
psz_url
,
p_sys
->
fmt
,
NULL
);
...
...
@@ -279,6 +279,7 @@ int OpenDemux( vlc_object_t *p_this )
{
msg_Err
(
p_demux
,
"Could not open %s: %s"
,
psz_url
,
vlc_strerror_c
(
AVUNERROR
(
error
))
);
av_free
(
pb
);
p_sys
->
ic
=
NULL
;
free
(
psz_url
);
CloseDemux
(
p_this
);
...
...
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