Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b6836bc3
Commit
b6836bc3
authored
Feb 06, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly used enda atom in mp4 demuxer (close #2692).
parent
6b2e2587
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+16
-8
No files found.
modules/demux/mp4/mp4.c
View file @
b6836bc3
...
@@ -1453,6 +1453,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
...
@@ -1453,6 +1453,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
MP4_Box_t
*
p_sample
;
MP4_Box_t
*
p_sample
;
MP4_Box_t
*
p_esds
;
MP4_Box_t
*
p_esds
;
MP4_Box_t
*
p_frma
;
MP4_Box_t
*
p_frma
;
MP4_Box_t
*
p_enda
;
if
(
pp_es
)
if
(
pp_es
)
*
pp_es
=
NULL
;
*
pp_es
=
NULL
;
...
@@ -1484,6 +1485,11 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
...
@@ -1484,6 +1485,11 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
p_sample
->
i_type
=
p_frma
->
data
.
p_frma
->
i_type
;
p_sample
->
i_type
=
p_frma
->
data
.
p_frma
->
i_type
;
}
}
p_enda
=
MP4_BoxGet
(
p_sample
,
"wave/enda"
);
if
(
!
p_enda
)
p_enda
=
MP4_BoxGet
(
p_sample
,
"enda"
);
msg_Err
(
p_demux
,
"ENDA=%p %d codec=%4.4s"
,
p_enda
,
p_enda
?
p_enda
->
data
.
p_enda
->
i_little_endian
:
-
1
,
&
p_sample
->
i_type
);
if
(
p_track
->
fmt
.
i_cat
==
AUDIO_ES
&&
(
p_track
->
i_sample_size
==
1
||
p_track
->
i_sample_size
==
2
)
)
if
(
p_track
->
fmt
.
i_cat
==
AUDIO_ES
&&
(
p_track
->
i_sample_size
==
1
||
p_track
->
i_sample_size
==
2
)
)
{
{
MP4_Box_data_sample_soun_t
*
p_soun
;
MP4_Box_data_sample_soun_t
*
p_soun
;
...
@@ -1690,14 +1696,16 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
...
@@ -1690,14 +1696,16 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
break
;
break
;
case
VLC_FOURCC
(
'i'
,
'n'
,
'2'
,
'4'
):
case
VLC_FOURCC
(
'i'
,
'n'
,
'2'
,
'4'
):
/* in in24/in32 there's enda-atom to tell it's little-endian (if present) */
p_track
->
fmt
.
i_codec
=
p_enda
&&
p_enda
->
data
.
p_enda
->
i_little_endian
==
1
?
if
(
(
MP4_BoxGet
(
p_sample
,
"wave/enda"
)
)
||
VLC_FOURCC
(
'4'
,
'2'
,
'n'
,
'i'
)
:
VLC_FOURCC
(
'i'
,
'n'
,
'2'
,
'4'
);
(
MP4_BoxGet
(
p_sample
,
"enda"
)
)
)
break
;
{
case
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
):
p_track
->
fmt
.
i_codec
=
VLC_FOURCC
(
'4'
,
'2'
,
'n'
,
'i'
);
p_track
->
fmt
.
i_codec
=
p_enda
&&
p_enda
->
data
.
p_enda
->
i_little_endian
==
1
?
}
else
{
VLC_CODEC_F32L
:
VLC_CODEC_F32B
;
p_track
->
fmt
.
i_codec
=
p_sample
->
i_type
;
break
;
}
case
VLC_FOURCC
(
'f'
,
'l'
,
'6'
,
'4'
):
p_track
->
fmt
.
i_codec
=
p_enda
&&
p_enda
->
data
.
p_enda
->
i_little_endian
==
1
?
VLC_CODEC_F64L
:
VLC_CODEC_F64B
;
break
;
break
;
default:
default:
...
...
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