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
8543c65f
Commit
8543c65f
authored
May 05, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: rename ReadBoxCommon
parent
ba3a2185
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
modules/demux/mkv/matroska_segment_parse.cpp
modules/demux/mkv/matroska_segment_parse.cpp
+1
-1
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+5
-5
modules/demux/mp4/libmp4.h
modules/demux/mp4/libmp4.h
+1
-1
No files found.
modules/demux/mkv/matroska_segment_parse.cpp
View file @
8543c65f
...
@@ -1405,7 +1405,7 @@ int32_t matroska_segment_c::TrackInit( mkv_track_t * p_tk )
...
@@ -1405,7 +1405,7 @@ int32_t matroska_segment_c::TrackInit( mkv_track_t * p_tk )
p_tk
->
p_extra_data
,
p_tk
->
p_extra_data
,
p_tk
->
i_extra_data
,
p_tk
->
i_extra_data
,
true
);
true
);
if
(
MP4_
ReadBoxCommon
(
p_mp4_stream
,
p_box
)
&&
if
(
MP4_
PeekBoxHeader
(
p_mp4_stream
,
p_box
)
&&
MP4_ReadBox_sample_vide
(
p_mp4_stream
,
p_box
)
)
MP4_ReadBox_sample_vide
(
p_mp4_stream
,
p_box
)
)
{
{
p_tk
->
fmt
.
i_codec
=
p_box
->
i_type
;
p_tk
->
fmt
.
i_codec
=
p_box
->
i_type
;
...
...
modules/demux/mp4/libmp4.c
View file @
8543c65f
...
@@ -110,14 +110,14 @@ static void MP4_BoxAddChild( MP4_Box_t *p_parent, MP4_Box_t *p_childbox )
...
@@ -110,14 +110,14 @@ static void MP4_BoxAddChild( MP4_Box_t *p_parent, MP4_Box_t *p_childbox )
#define stream_Seek(a,b) __NO__
#define stream_Seek(a,b) __NO__
/*****************************************************************************
/*****************************************************************************
* MP4_
ReadBoxCommon
: Load only common parameters for all boxes
* MP4_
PeekBoxHeader
: Load only common parameters for all boxes
*****************************************************************************
*****************************************************************************
* p_box need to be an already allocated MP4_Box_t, and all data
* p_box need to be an already allocated MP4_Box_t, and all data
* will only be peek not read
* will only be peek not read
*
*
* RETURN : 0 if it fail, 1 otherwise
* RETURN : 0 if it fail, 1 otherwise
*****************************************************************************/
*****************************************************************************/
int
MP4_
ReadBoxCommon
(
stream_t
*
p_stream
,
MP4_Box_t
*
p_box
)
int
MP4_
PeekBoxHeader
(
stream_t
*
p_stream
,
MP4_Box_t
*
p_box
)
{
{
int
i_read
;
int
i_read
;
const
uint8_t
*
p_peek
;
const
uint8_t
*
p_peek
;
...
@@ -186,7 +186,7 @@ static int MP4_NextBox( stream_t *p_stream, MP4_Box_t *p_box )
...
@@ -186,7 +186,7 @@ static int MP4_NextBox( stream_t *p_stream, MP4_Box_t *p_box )
if
(
!
p_box
)
if
(
!
p_box
)
{
{
if
(
!
MP4_
ReadBoxCommon
(
p_stream
,
&
box
)
)
if
(
!
MP4_
PeekBoxHeader
(
p_stream
,
&
box
)
)
return
0
;
return
0
;
p_box
=
&
box
;
p_box
=
&
box
;
}
}
...
@@ -3975,7 +3975,7 @@ static MP4_Box_t *MP4_ReadBox( stream_t *p_stream, MP4_Box_t *p_father )
...
@@ -3975,7 +3975,7 @@ static MP4_Box_t *MP4_ReadBox( stream_t *p_stream, MP4_Box_t *p_father )
if
(
p_box
==
NULL
)
if
(
p_box
==
NULL
)
return
NULL
;
return
NULL
;
if
(
!
MP4_
ReadBoxCommon
(
p_stream
,
p_box
)
)
if
(
!
MP4_
PeekBoxHeader
(
p_stream
,
p_box
)
)
{
{
msg_Warn
(
p_stream
,
"cannot read one box"
);
msg_Warn
(
p_stream
,
"cannot read one box"
);
free
(
p_box
);
free
(
p_box
);
...
@@ -4105,7 +4105,7 @@ MP4_Box_t *MP4_BoxGetNextChunk( stream_t *s )
...
@@ -4105,7 +4105,7 @@ MP4_Box_t *MP4_BoxGetNextChunk( stream_t *s )
return
NULL
;
return
NULL
;
/* We might get a ftyp box or a SmooBox */
/* We might get a ftyp box or a SmooBox */
MP4_
ReadBoxCommon
(
s
,
p_tmp_box
);
MP4_
PeekBoxHeader
(
s
,
p_tmp_box
);
if
(
(
p_tmp_box
->
i_type
==
ATOM_uuid
&&
!
CmpUUID
(
&
p_tmp_box
->
i_uuid
,
&
SmooBoxUUID
))
)
if
(
(
p_tmp_box
->
i_type
==
ATOM_uuid
&&
!
CmpUUID
(
&
p_tmp_box
->
i_uuid
,
&
SmooBoxUUID
))
)
{
{
...
...
modules/demux/mp4/libmp4.h
View file @
8543c65f
...
@@ -1705,7 +1705,7 @@ MP4_Box_t *MP4_BoxGet( MP4_Box_t *p_box, const char *psz_fmt, ... );
...
@@ -1705,7 +1705,7 @@ MP4_Box_t *MP4_BoxGet( MP4_Box_t *p_box, const char *psz_fmt, ... );
int
MP4_BoxCount
(
MP4_Box_t
*
p_box
,
const
char
*
psz_fmt
,
...
);
int
MP4_BoxCount
(
MP4_Box_t
*
p_box
,
const
char
*
psz_fmt
,
...
);
/* Internal functions exposed for MKV demux */
/* Internal functions exposed for MKV demux */
int
MP4_
ReadBoxCommon
(
stream_t
*
p_stream
,
MP4_Box_t
*
p_box
);
int
MP4_
PeekBoxHeader
(
stream_t
*
p_stream
,
MP4_Box_t
*
p_box
);
int
MP4_ReadBoxContainerChildren
(
stream_t
*
p_stream
,
MP4_Box_t
*
p_container
,
int
MP4_ReadBoxContainerChildren
(
stream_t
*
p_stream
,
MP4_Box_t
*
p_container
,
uint32_t
i_last_child
);
uint32_t
i_last_child
);
int
MP4_ReadBox_sample_vide
(
stream_t
*
p_stream
,
MP4_Box_t
*
p_box
);
int
MP4_ReadBox_sample_vide
(
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