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
30c09ef4
Commit
30c09ef4
authored
Jun 12, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: libmp4: constify counters/walkers
parent
455153a8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+11
-11
modules/demux/mp4/libmp4.h
modules/demux/mp4/libmp4.h
+3
-3
No files found.
modules/demux/mp4/libmp4.c
View file @
30c09ef4
...
...
@@ -4155,10 +4155,10 @@ error:
}
static
void
MP4_BoxDumpStructure_Internal
(
stream_t
*
s
,
MP4_Box_t
*
p_box
,
unsigned
int
i_level
)
static
void
MP4_BoxDumpStructure_Internal
(
stream_t
*
s
,
const
MP4_Box_t
*
p_box
,
unsigned
int
i_level
)
{
MP4_Box_t
*
p_child
;
const
MP4_Box_t
*
p_child
;
uint32_t
i_displayedtype
=
p_box
->
i_type
;
if
(
!
MP4_BOX_TYPE_ASCII
()
)
((
char
*
)
&
i_displayedtype
)[
0
]
=
'c'
;
...
...
@@ -4194,7 +4194,7 @@ static void MP4_BoxDumpStructure_Internal( stream_t *s,
}
}
void
MP4_BoxDumpStructure
(
stream_t
*
s
,
MP4_Box_t
*
p_box
)
void
MP4_BoxDumpStructure
(
stream_t
*
s
,
const
MP4_Box_t
*
p_box
)
{
MP4_BoxDumpStructure_Internal
(
s
,
p_box
,
0
);
}
...
...
@@ -4250,8 +4250,8 @@ static void get_token( char **ppsz_path, char **ppsz_token, int *pi_number )
}
}
static
void
MP4_BoxGet_Internal
(
MP4_Box_t
**
pp_result
,
MP4_Box_t
*
p_box
,
const
char
*
psz_fmt
,
va_list
args
)
static
void
MP4_BoxGet_Internal
(
const
MP4_Box_t
**
pp_result
,
const
MP4_Box_t
*
p_box
,
const
char
*
psz_fmt
,
va_list
args
)
{
char
*
psz_dup
;
char
*
psz_path
;
...
...
@@ -4384,16 +4384,16 @@ error_box:
* ex: /moov/trak[12]
* ../mdia
*****************************************************************************/
MP4_Box_t
*
MP4_BoxGet
(
MP4_Box_t
*
p_box
,
const
char
*
psz_fmt
,
...
)
MP4_Box_t
*
MP4_BoxGet
(
const
MP4_Box_t
*
p_box
,
const
char
*
psz_fmt
,
...
)
{
va_list
args
;
MP4_Box_t
*
p_result
;
const
MP4_Box_t
*
p_result
;
va_start
(
args
,
psz_fmt
);
MP4_BoxGet_Internal
(
&
p_result
,
p_box
,
psz_fmt
,
args
);
va_end
(
args
);
return
(
p_result
);
return
(
(
MP4_Box_t
*
)
p_result
);
}
/*****************************************************************************
...
...
@@ -4405,11 +4405,11 @@ MP4_Box_t *MP4_BoxGet( MP4_Box_t *p_box, const char *psz_fmt, ... )
* ex: /moov/trak[12]
* ../mdia
*****************************************************************************/
unsigned
MP4_BoxCount
(
MP4_Box_t
*
p_box
,
const
char
*
psz_fmt
,
...
)
unsigned
MP4_BoxCount
(
const
MP4_Box_t
*
p_box
,
const
char
*
psz_fmt
,
...
)
{
va_list
args
;
unsigned
i_count
;
MP4_Box_t
*
p_result
,
*
p_next
;
const
MP4_Box_t
*
p_result
,
*
p_next
;
va_start
(
args
,
psz_fmt
);
MP4_BoxGet_Internal
(
&
p_result
,
p_box
,
psz_fmt
,
args
);
...
...
modules/demux/mp4/libmp4.h
View file @
30c09ef4
...
...
@@ -1674,7 +1674,7 @@ void MP4_BoxFree( stream_t *, MP4_Box_t *p_box );
*****************************************************************************
* Useful while debugging
*****************************************************************************/
void
MP4_BoxDumpStructure
(
stream_t
*
p_input
,
MP4_Box_t
*
p_box
);
void
MP4_BoxDumpStructure
(
stream_t
*
p_input
,
const
MP4_Box_t
*
p_box
);
/*****************************************************************************
* MP4_BoxGet: find a box given a path relative to p_box
...
...
@@ -1685,7 +1685,7 @@ void MP4_BoxDumpStructure( stream_t *p_input, MP4_Box_t *p_box );
* ex: /moov/trak[12]
* ../mdia
*****************************************************************************/
MP4_Box_t
*
MP4_BoxGet
(
MP4_Box_t
*
p_box
,
const
char
*
psz_fmt
,
...
);
MP4_Box_t
*
MP4_BoxGet
(
const
MP4_Box_t
*
p_box
,
const
char
*
psz_fmt
,
...
);
/*****************************************************************************
* MP4_BoxCount: find number of box given a path relative to p_box
...
...
@@ -1696,7 +1696,7 @@ MP4_Box_t *MP4_BoxGet( MP4_Box_t *p_box, const char *psz_fmt, ... );
* ex: /moov/trak
* ../mdia
*****************************************************************************/
unsigned
MP4_BoxCount
(
MP4_Box_t
*
p_box
,
const
char
*
psz_fmt
,
...
);
unsigned
MP4_BoxCount
(
const
MP4_Box_t
*
p_box
,
const
char
*
psz_fmt
,
...
);
/* Internal functions exposed for MKV demux */
int
MP4_PeekBoxHeader
(
stream_t
*
p_stream
,
MP4_Box_t
*
p_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