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
00837ad6
Commit
00837ad6
authored
Apr 05, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp4: replace some fourcc by VLC_CODEC_
parent
b1b423c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+15
-15
No files found.
modules/demux/mp4/mp4.c
View file @
00837ad6
...
@@ -683,7 +683,7 @@ static int Demux( demux_t *p_demux )
...
@@ -683,7 +683,7 @@ static int Demux( demux_t *p_demux )
else
if
(
tk
->
fmt
.
i_cat
==
SPU_ES
)
else
if
(
tk
->
fmt
.
i_cat
==
SPU_ES
)
{
{
if
(
tk
->
fmt
.
i_codec
==
VLC_
FOURCC
(
's'
,
'u'
,
'b'
,
't'
)
&&
if
(
tk
->
fmt
.
i_codec
==
VLC_
CODEC_SUBT
&&
p_block
->
i_buffer
>=
2
)
p_block
->
i_buffer
>=
2
)
{
{
size_t
i_size
=
GetWBE
(
p_block
->
p_buffer
);
size_t
i_size
=
GetWBE
(
p_block
->
p_buffer
);
...
@@ -1125,7 +1125,7 @@ static void LoadChapter( demux_t *p_demux )
...
@@ -1125,7 +1125,7 @@ static void LoadChapter( demux_t *p_demux )
{
{
mp4_track_t
*
tk
=
&
p_sys
->
track
[
j
];
mp4_track_t
*
tk
=
&
p_sys
->
track
[
j
];
if
(
tk
->
b_ok
&&
tk
->
i_track_ID
==
p_chap
->
i_track_ID
[
i
]
&&
if
(
tk
->
b_ok
&&
tk
->
i_track_ID
==
p_chap
->
i_track_ID
[
i
]
&&
tk
->
fmt
.
i_cat
==
SPU_ES
&&
tk
->
fmt
.
i_codec
==
VLC_
FOURCC
(
's'
,
'u'
,
'b'
,
't'
)
)
tk
->
fmt
.
i_cat
==
SPU_ES
&&
tk
->
fmt
.
i_codec
==
VLC_
CODEC_SUBT
)
break
;
break
;
}
}
if
(
j
<
p_sys
->
i_tracks
)
if
(
j
<
p_sys
->
i_tracks
)
...
@@ -1676,14 +1676,14 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
...
@@ -1676,14 +1676,14 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
case
(
VLC_FOURCC
(
'.'
,
'm'
,
'p'
,
'3'
)
):
case
(
VLC_FOURCC
(
'.'
,
'm'
,
'p'
,
'3'
)
):
case
(
VLC_FOURCC
(
'm'
,
's'
,
0x00
,
0x55
)
):
case
(
VLC_FOURCC
(
'm'
,
's'
,
0x00
,
0x55
)
):
{
{
p_track
->
fmt
.
i_codec
=
VLC_
FOURCC
(
'm'
,
'p'
,
'g'
,
'a'
)
;
p_track
->
fmt
.
i_codec
=
VLC_
CODEC_MPGA
;
break
;
break
;
}
}
case
(
VLC_FOURCC
(
'a'
,
'c'
,
'-'
,
'3'
)
):
case
(
VLC_FOURCC
(
'a'
,
'c'
,
'-'
,
'3'
)
):
{
{
MP4_Box_t
*
p_dac3_box
=
MP4_BoxGet
(
p_sample
,
"dac3"
,
0
);
MP4_Box_t
*
p_dac3_box
=
MP4_BoxGet
(
p_sample
,
"dac3"
,
0
);
p_track
->
fmt
.
i_codec
=
VLC_
FOURCC
(
'a'
,
'5'
,
'2'
,
' '
)
;
p_track
->
fmt
.
i_codec
=
VLC_
CODEC_A52
;
if
(
p_dac3_box
)
if
(
p_dac3_box
)
{
{
static
const
int
pi_bitrate
[]
=
{
static
const
int
pi_bitrate
[]
=
{
...
@@ -1704,7 +1704,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
...
@@ -1704,7 +1704,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
}
}
case
(
VLC_FOURCC
(
'e'
,
'c'
,
'-'
,
'3'
)
):
case
(
VLC_FOURCC
(
'e'
,
'c'
,
'-'
,
'3'
)
):
{
{
p_track
->
fmt
.
i_codec
=
VLC_
FOURCC
(
'e'
,
'a'
,
'c'
,
'3'
)
;
p_track
->
fmt
.
i_codec
=
VLC_
CODEC_EAC3
;
break
;
break
;
}
}
...
@@ -1738,12 +1738,12 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
...
@@ -1738,12 +1738,12 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
}
}
case
(
VLC_FOURCC
(
's'
,
'2'
,
'6'
,
'3'
)
):
case
(
VLC_FOURCC
(
's'
,
'2'
,
'6'
,
'3'
)
):
p_track
->
fmt
.
i_codec
=
VLC_
FOURCC
(
'h'
,
'2'
,
'6'
,
'3'
)
;
p_track
->
fmt
.
i_codec
=
VLC_
CODEC_H263
;
break
;
break
;
case
(
VLC_FOURCC
(
't'
,
'e'
,
'x'
,
't'
)
):
case
(
VLC_FOURCC
(
't'
,
'e'
,
'x'
,
't'
)
):
case
(
VLC_FOURCC
(
't'
,
'x'
,
'3'
,
'g'
)
):
case
(
VLC_FOURCC
(
't'
,
'x'
,
'3'
,
'g'
)
):
p_track
->
fmt
.
i_codec
=
VLC_
FOURCC
(
's'
,
'u'
,
'b'
,
't'
)
;
p_track
->
fmt
.
i_codec
=
VLC_
CODEC_SUBT
;
/* FIXME: Not true, could be UTF-16 with a Byte Order Mark (0xfeff) */
/* FIXME: Not true, could be UTF-16 with a Byte Order Mark (0xfeff) */
/* FIXME UTF-8 doesn't work here ? */
/* FIXME UTF-8 doesn't work here ? */
if
(
p_track
->
b_mac_encoding
)
if
(
p_track
->
b_mac_encoding
)
...
@@ -1753,7 +1753,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
...
@@ -1753,7 +1753,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
break
;
break
;
case
VLC_FOURCC
(
'y'
,
'v'
,
'1'
,
'2'
):
case
VLC_FOURCC
(
'y'
,
'v'
,
'1'
,
'2'
):
p_track
->
fmt
.
i_codec
=
VLC_
FOURCC
(
'Y'
,
'V'
,
'1'
,
'2'
)
;
p_track
->
fmt
.
i_codec
=
VLC_
CODEC_YV12
;
break
;
break
;
case
VLC_FOURCC
(
'y'
,
'u'
,
'v'
,
'2'
):
case
VLC_FOURCC
(
'y'
,
'u'
,
'v'
,
'2'
):
p_track
->
fmt
.
i_codec
=
VLC_FOURCC
(
'Y'
,
'U'
,
'Y'
,
'2'
);
p_track
->
fmt
.
i_codec
=
VLC_FOURCC
(
'Y'
,
'U'
,
'Y'
,
'2'
);
...
@@ -1850,13 +1850,13 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
...
@@ -1850,13 +1850,13 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
switch
(
p_decconfig
->
i_objectTypeIndication
)
switch
(
p_decconfig
->
i_objectTypeIndication
)
{
{
case
(
0x20
):
/* MPEG4 VIDEO */
case
(
0x20
):
/* MPEG4 VIDEO */
p_track
->
fmt
.
i_codec
=
VLC_
FOURCC
(
'm'
,
'p'
,
'4'
,
'v'
)
;
p_track
->
fmt
.
i_codec
=
VLC_
CODEC_MP4V
;
break
;
break
;
case
(
0x21
):
/* H.264 */
case
(
0x21
):
/* H.264 */
p_track
->
fmt
.
i_codec
=
VLC_CODEC_H264
;
p_track
->
fmt
.
i_codec
=
VLC_CODEC_H264
;
break
;
break
;
case
(
0x40
):
case
(
0x40
):
p_track
->
fmt
.
i_codec
=
VLC_
FOURCC
(
'm'
,
'p'
,
'4'
,
'a'
)
;
p_track
->
fmt
.
i_codec
=
VLC_
CODEC_MP4A
;
if
(
p_decconfig
->
i_decoder_specific_info_len
>=
2
&&
if
(
p_decconfig
->
i_decoder_specific_info_len
>=
2
&&
p_decconfig
->
p_decoder_specific_info
[
0
]
==
0xF8
&&
p_decconfig
->
p_decoder_specific_info
[
0
]
==
0xF8
&&
(
p_decconfig
->
p_decoder_specific_info
[
1
]
&
0xE0
)
==
0x80
)
(
p_decconfig
->
p_decoder_specific_info
[
1
]
&
0xE0
)
==
0x80
)
...
@@ -1870,23 +1870,23 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
...
@@ -1870,23 +1870,23 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
case
(
0x63
):
case
(
0x63
):
case
(
0x64
):
case
(
0x64
):
case
(
0x65
):
/* MPEG2 video */
case
(
0x65
):
/* MPEG2 video */
p_track
->
fmt
.
i_codec
=
VLC_
FOURCC
(
'm'
,
'p'
,
'g'
,
'v'
)
;
p_track
->
fmt
.
i_codec
=
VLC_
CODEC_MPGV
;
break
;
break
;
/* Theses are MPEG2-AAC */
/* Theses are MPEG2-AAC */
case
(
0x66
):
/* main profile */
case
(
0x66
):
/* main profile */
case
(
0x67
):
/* Low complexity profile */
case
(
0x67
):
/* Low complexity profile */
case
(
0x68
):
/* Scaleable Sampling rate profile */
case
(
0x68
):
/* Scaleable Sampling rate profile */
p_track
->
fmt
.
i_codec
=
VLC_
FOURCC
(
'm'
,
'p'
,
'4'
,
'a'
)
;
p_track
->
fmt
.
i_codec
=
VLC_
CODEC_MP4A
;
break
;
break
;
/*
t
rue MPEG 2 audio */
/*
T
rue MPEG 2 audio */
case
(
0x69
):
case
(
0x69
):
p_track
->
fmt
.
i_codec
=
VLC_
FOURCC
(
'm'
,
'p'
,
'g'
,
'a'
)
;
p_track
->
fmt
.
i_codec
=
VLC_
CODEC_MPGA
;
break
;
break
;
case
(
0x6a
):
/* MPEG1 video */
case
(
0x6a
):
/* MPEG1 video */
p_track
->
fmt
.
i_codec
=
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'v'
);
p_track
->
fmt
.
i_codec
=
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'v'
);
break
;
break
;
case
(
0x6b
):
/* MPEG1 audio */
case
(
0x6b
):
/* MPEG1 audio */
p_track
->
fmt
.
i_codec
=
VLC_
FOURCC
(
'm'
,
'p'
,
'g'
,
'a'
)
;
p_track
->
fmt
.
i_codec
=
VLC_
CODEC_MPGA
;
break
;
break
;
case
(
0x6c
):
/* jpeg */
case
(
0x6c
):
/* jpeg */
p_track
->
fmt
.
i_codec
=
VLC_FOURCC
(
'j'
,
'p'
,
'e'
,
'g'
);
p_track
->
fmt
.
i_codec
=
VLC_FOURCC
(
'j'
,
'p'
,
'e'
,
'g'
);
...
...
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