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
84726b40
Commit
84726b40
authored
Oct 16, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: libmp4: add define for handlers
parent
b0c9dced
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+4
-4
modules/demux/mp4/libmp4.h
modules/demux/mp4/libmp4.h
+3
-0
No files found.
modules/demux/mp4/libmp4.c
View file @
84726b40
...
...
@@ -335,9 +335,9 @@ static int MP4_ReadBox_ilst( stream_t *p_stream, MP4_Box_t *p_box )
case
0
:
msg_Warn
(
p_stream
,
"no handler for ilst atom"
);
return
0
;
case
VLC_FOURCC
(
'm'
,
'd'
,
't'
,
'a'
)
:
case
HANDLER_mdta
:
return
MP4_ReadBoxContainerChildrenIndexed
(
p_stream
,
p_box
,
0
,
true
);
case
VLC_FOURCC
(
'm'
,
'd'
,
'i'
,
'r'
)
:
case
HANDLER_mdir
:
return
MP4_ReadBoxContainerChildren
(
p_stream
,
p_box
,
0
);
default:
msg_Warn
(
p_stream
,
"Unknown ilst handler type '%4.4s'"
,
(
char
*
)
&
p_box
->
i_handler
);
...
...
@@ -3237,8 +3237,8 @@ static int MP4_ReadBox_meta( stream_t *p_stream, MP4_Box_t *p_box )
/* Mandatory */
const
MP4_Box_t
*
p_hdlr
=
MP4_BoxGet
(
p_box
,
"hdlr"
);
if
(
!
p_hdlr
||
!
BOXDATA
(
p_hdlr
)
||
(
BOXDATA
(
p_hdlr
)
->
i_handler_type
!=
VLC_FOURCC
(
'm'
,
'd'
,
't'
,
'a'
)
&&
BOXDATA
(
p_hdlr
)
->
i_handler_type
!=
VLC_FOURCC
(
'm'
,
'd'
,
'i'
,
'r'
)
)
||
(
BOXDATA
(
p_hdlr
)
->
i_handler_type
!=
HANDLER_mdta
&&
BOXDATA
(
p_hdlr
)
->
i_handler_type
!=
HANDLER_mdir
)
||
BOXDATA
(
p_hdlr
)
->
i_version
!=
0
)
return
0
;
...
...
modules/demux/mp4/libmp4.h
View file @
84726b40
...
...
@@ -289,6 +289,9 @@
#define ATOM_SDLN VLC_FOURCC( 'S', 'D', 'L', 'N' )
#define ATOM_vndr VLC_FOURCC( 'v', 'n', 'd', 'r' )
#define HANDLER_mdta VLC_FOURCC('m', 'd', 't', 'a')
#define HANDLER_mdir VLC_FOURCC('m', 'd', 'i', 'r')
/* Do you want some debug information on all read boxes ? */
#ifndef NDEBUG
# define MP4_VERBOSE 1
...
...
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