Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
25ebbc9d
Commit
25ebbc9d
authored
Apr 19, 2003
by
Laurent Aimar
Browse files
* mp4: some memory leaks fixed.
parent
0d1fb8af
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/mux/mp4.c
View file @
25ebbc9d
...
...
@@ -2,7 +2,7 @@
* mp4.c
*****************************************************************************
* Copyright (C) 2001, 2002, 2003 VideoLAN
* $Id: mp4.c,v 1.
1
2003/04/1
8 22:43:08
fenrir Exp $
* $Id: mp4.c,v 1.
2
2003/04/1
9 00:12:50
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -740,6 +740,23 @@ static void Close( vlc_object_t * p_this )
box_fix
(
moov
);
box_send
(
p_mux
,
moov
);
/* *** release memory *** */
for
(
i_trak
=
0
;
i_trak
<
p_sys
->
i_nb_streams
;
i_trak
++
)
{
mp4_stream_t
*
p_stream
;
p_stream
=
p_sys
->
pp_streams
[
i_trak
];
if
(
p_stream
->
p_fmt
->
p_extra_data
)
{
free
(
p_stream
->
p_fmt
->
p_extra_data
);
}
free
(
p_stream
->
p_fmt
);
free
(
p_stream
->
entry
);
free
(
p_stream
);
}
free
(
p_sys
);
}
static
int
Capability
(
sout_mux_t
*
p_mux
,
int
i_query
,
void
*
p_args
,
void
*
p_answer
)
...
...
@@ -759,7 +776,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
sout_mux_sys_t
*
p_sys
=
p_mux
->
p_sys
;
mp4_stream_t
*
p_stream
;
switch
(
p_input
-
p_fmt
->
i_fourcc
)
switch
(
p_input
-
>
p_fmt
->
i_fourcc
)
{
case
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'a'
):
case
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'v'
):
...
...
@@ -769,7 +786,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
default:
msg_Err
(
p_mux
,
"unsupported codec %4.4s in mp4"
,
(
char
*
)
&
p_input
-
p_fmt
->
i_fourcc
);
(
char
*
)
&
p_input
-
>
p_fmt
->
i_fourcc
);
return
VLC_EGENERIC
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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