Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
0de00b2c
Commit
0de00b2c
authored
Oct 16, 2014
by
François Cartegnie
🤞
Browse files
demux: libmp4: split major brands from atoms
parent
b50d8373
Changes
2
Show whitespace changes
Inline
Side-by-side
modules/demux/mp4/libmp4.h
View file @
0de00b2c
...
...
@@ -28,6 +28,14 @@
#define BLOCK16x16 (1<<16)
#define MAJOR_3gp4 VLC_FOURCC( '3', 'g', 'p', '4' )
#define MAJOR_3gp5 VLC_FOURCC( '3', 'g', 'p', '5' )
#define MAJOR_3gp6 VLC_FOURCC( '3', 'g', 'p', '6' )
#define MAJOR_3gp7 VLC_FOURCC( '3', 'g', 'p', '7' )
#define MAJOR_isml VLC_FOURCC( 'i', 's', 'm', 'l' )
#define MAJOR_isom VLC_FOURCC( 'i', 's', 'o', 'm' )
#define MAJOR_qt__ VLC_FOURCC( 'q', 't', ' ', ' ' )
#define ATOM_root VLC_FOURCC( 'r', 'o', 'o', 't' )
#define ATOM_uuid VLC_FOURCC( 'u', 'u', 'i', 'd' )
...
...
@@ -111,8 +119,6 @@
#define ATOM_hnti VLC_FOURCC( 'h', 'n', 't', 'i' )
#define ATOM_rtp VLC_FOURCC( 'r', 't', 'p', ' ' )
#define ATOM_isom VLC_FOURCC( 'i', 's', 'o', 'm' )
#define ATOM_3gp4 VLC_FOURCC( '3', 'g', 'p', '4' )
#define ATOM_esds VLC_FOURCC( 'e', 's', 'd', 's' )
#define ATOM_lpcm VLC_FOURCC( 'l', 'p', 'c', 'm' )
...
...
modules/demux/mp4/mp4.c
View file @
0de00b2c
...
...
@@ -632,15 +632,15 @@ static int Open( vlc_object_t * p_this )
{
switch
(
BOXDATA
(
p_ftyp
)
->
i_major_brand
)
{
case
(
ATOM
_isom
)
:
case
MAJOR
_isom
:
msg_Dbg
(
p_demux
,
"ISO Media file (isom) version %d."
,
BOXDATA
(
p_ftyp
)
->
i_minor_version
);
break
;
case
(
ATOM
_3gp4
)
:
case
(
VLC_FOURCC
(
'3'
,
'g'
,
'p'
,
'5'
)
)
:
case
(
VLC_FOURCC
(
'3'
,
'g'
,
'p'
,
'6'
)
)
:
case
(
VLC_FOURCC
(
'3'
,
'g'
,
'p'
,
'7'
)
)
:
case
MAJOR
_3gp4
:
case
MAJOR_3gp5
:
case
MAJOR_3gp6
:
case
MAJOR_3gp7
:
msg_Dbg
(
p_demux
,
"3GPP Media file Release: %c"
,
#ifdef WORDS_BIGENDIAN
BOXDATA
(
p_ftyp
)
->
i_major_brand
...
...
@@ -649,10 +649,10 @@ static int Open( vlc_object_t * p_this )
#endif
);
break
;
case
(
VLC_FOURCC
(
'q'
,
't'
,
' '
,
' '
)
)
:
case
MAJOR_qt__
:
msg_Dbg
(
p_demux
,
"Apple QuickTime file"
);
break
;
case
(
VLC_FOURCC
(
'i'
,
's'
,
'm'
,
'l'
)
)
:
case
MAJOR_isml
:
msg_Dbg
(
p_demux
,
"PIFF (= isml = fMP4) file"
);
break
;
default:
...
...
Write
Preview
Supports
Markdown
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