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
4b2d5cd7
Commit
4b2d5cd7
authored
Oct 06, 2012
by
Frédéric Yhuel
Committed by
Jean-Baptiste Kempf
Oct 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp4: use vlc_fourcc_GetCodec()
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
353ee107
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+3
-9
No files found.
modules/demux/mp4/mp4.c
View file @
4b2d5cd7
...
...
@@ -3152,6 +3152,9 @@ static int MP4_frg_TrackCreate( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_
/* Set language FIXME */
fmt
->
psz_language
=
strdup
(
"en"
);
fmt
->
i_original_fourcc
=
p_data
->
FourCC
;
fmt
->
i_codec
=
vlc_fourcc_GetCodec
(
fmt
->
i_cat
,
p_data
->
FourCC
);
uint8_t
**
p_extra
=
(
uint8_t
**
)
&
fmt
->
p_extra
;
/* See http://msdn.microsoft.com/en-us/library/ff728116%28v=vs.90%29.aspx
* for MS weird use of FourCC*/
...
...
@@ -3164,11 +3167,9 @@ static int MP4_frg_TrackCreate( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_
{
fmt
->
i_extra
=
build_raw_avcC
(
p_extra
,
p_data
->
CodecPrivateData
,
p_data
->
cpd_len
);
fmt
->
i_codec
=
VLC_CODEC_H264
;
}
else
{
fmt
->
i_codec
=
p_data
->
FourCC
;
ret
=
MP4_SetCodecExtraData
(
fmt
,
p_data
);
if
(
ret
!=
VLC_SUCCESS
)
return
ret
;
...
...
@@ -3195,13 +3196,6 @@ static int MP4_frg_TrackCreate( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_
break
;
case
AUDIO_ES
:
if
(
p_data
->
FourCC
==
VLC_FOURCC
(
'A'
,
'A'
,
'C'
,
'H'
)
||
p_data
->
FourCC
==
VLC_FOURCC
(
'A'
,
'A'
,
'C'
,
'L'
)
)
fmt
->
i_codec
=
VLC_CODEC_MP4A
;
else
fmt
->
i_codec
=
p_data
->
FourCC
;
fmt
->
audio
.
i_channels
=
p_data
->
Channels
;
fmt
->
audio
.
i_rate
=
p_data
->
SamplingRate
;
fmt
->
audio
.
i_bitspersample
=
p_data
->
BitsPerSample
;
...
...
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