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
753d2bfb
Commit
753d2bfb
authored
Aug 22, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mux_mp4: fix memory leak
parent
76530ab0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
modules/mux/mp4.c
modules/mux/mp4.c
+6
-5
No files found.
modules/mux/mp4.c
View file @
753d2bfb
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
#include <vlc_bits.h>
#include <vlc_bits.h>
#include <assert.h>
#include <time.h>
#include <time.h>
#include <vlc_iso_lang.h>
#include <vlc_iso_lang.h>
...
@@ -45,7 +46,6 @@
...
@@ -45,7 +46,6 @@
#include "../demux/mpeg/mpeg_parser_helpers.h"
#include "../demux/mpeg/mpeg_parser_helpers.h"
#include "../demux/mp4/libmp4.h"
#include "../demux/mp4/libmp4.h"
#include "assert.h"
/*****************************************************************************
/*****************************************************************************
* Module descriptor
* Module descriptor
*****************************************************************************/
*****************************************************************************/
...
@@ -277,9 +277,8 @@ static int Open(vlc_object_t *p_this)
...
@@ -277,9 +277,8 @@ static int Open(vlc_object_t *p_this)
box_fix
(
box
,
box
->
b
->
i_buffer
);
box_fix
(
box
,
box
->
b
->
i_buffer
);
p_sys
->
i_pos
+=
box
->
b
->
i_buffer
;
p_sys
->
i_pos
+=
box
->
b
->
i_buffer
;
p_sys
->
i_mdat_pos
=
p_sys
->
i_pos
;
p_sys
->
i_mdat_pos
=
p_sys
->
i_pos
;
box_send
(
p_mux
,
box
);
}
}
box_send
(
p_mux
,
box
);
}
}
/* FIXME FIXME
/* FIXME FIXME
...
@@ -394,7 +393,8 @@ static void Close(vlc_object_t *p_this)
...
@@ -394,7 +393,8 @@ static void Close(vlc_object_t *p_this)
/* Write MOOV header */
/* Write MOOV header */
sout_AccessOutSeek
(
p_mux
->
p_access
,
i_moov_pos
);
sout_AccessOutSeek
(
p_mux
->
p_access
,
i_moov_pos
);
box_send
(
p_mux
,
moov
);
if
(
moov
!=
NULL
)
box_send
(
p_mux
,
moov
);
cleanup:
cleanup:
/* Clean-up */
/* Clean-up */
...
@@ -2463,7 +2463,8 @@ static void box_gather (bo_t *box, bo_t *box2)
...
@@ -2463,7 +2463,8 @@ static void box_gather (bo_t *box, bo_t *box2)
static
void
box_send
(
sout_mux_t
*
p_mux
,
bo_t
*
box
)
static
void
box_send
(
sout_mux_t
*
p_mux
,
bo_t
*
box
)
{
{
if
(
box
&&
box
->
b
)
assert
(
box
!=
NULL
);
if
(
box
->
b
)
sout_AccessOutWrite
(
p_mux
->
p_access
,
box
->
b
);
sout_AccessOutWrite
(
p_mux
->
p_access
,
box
->
b
);
free
(
box
);
free
(
box
);
}
}
...
...
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