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
de398e6b
Commit
de398e6b
authored
May 05, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: libmp4: set pf_free on specific struct allocation
drops the useless tables entries
parent
5da18afa
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
486 additions
and
525 deletions
+486
-525
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+481
-521
modules/demux/mp4/libmp4.h
modules/demux/mp4/libmp4.h
+5
-4
No files found.
modules/demux/mp4/libmp4.c
View file @
de398e6b
This diff is collapsed.
Click to expand it.
modules/demux/mp4/libmp4.h
View file @
de398e6b
...
@@ -1564,7 +1564,7 @@ static inline size_t mp4_box_headersize( MP4_Box_t *p_box )
...
@@ -1564,7 +1564,7 @@ static inline size_t mp4_box_headersize( MP4_Box_t *p_box )
p_str = NULL; \
p_str = NULL; \
}
}
#define MP4_READBOX_ENTER_PARTIAL( MP4_Box_data_TYPE_t, maxread ) \
#define MP4_READBOX_ENTER_PARTIAL( MP4_Box_data_TYPE_t, maxread
, release
) \
int64_t i_read = p_box->i_size; \
int64_t i_read = p_box->i_size; \
if( maxread < (uint64_t)i_read ) i_read = maxread;\
if( maxread < (uint64_t)i_read ) i_read = maxread;\
uint8_t *p_peek, *p_buff; \
uint8_t *p_peek, *p_buff; \
...
@@ -1587,10 +1587,11 @@ static inline size_t mp4_box_headersize( MP4_Box_t *p_box )
...
@@ -1587,10 +1587,11 @@ static inline size_t mp4_box_headersize( MP4_Box_t *p_box )
{ \
{ \
free( p_buff ); \
free( p_buff ); \
return( 0 ); \
return( 0 ); \
}
}\
p_box->pf_free = release;
#define MP4_READBOX_ENTER( MP4_Box_data_TYPE_t ) \
#define MP4_READBOX_ENTER( MP4_Box_data_TYPE_t
, release
) \
MP4_READBOX_ENTER_PARTIAL( MP4_Box_data_TYPE_t, p_box->i_size )
MP4_READBOX_ENTER_PARTIAL( MP4_Box_data_TYPE_t, p_box->i_size
, release
)
#define MP4_READBOX_EXIT( i_code ) \
#define MP4_READBOX_EXIT( i_code ) \
do \
do \
...
...
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