Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
7ab224e1
Commit
7ab224e1
authored
Nov 30, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/mp4/mp4.c: fixed bug with some HE-AAC audio tracks (no, really).
parent
51923b09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
27 deletions
+19
-27
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+19
-27
No files found.
modules/demux/mp4/mp4.c
View file @
7ab224e1
...
...
@@ -1270,9 +1270,28 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
case
(
VLC_FOURCC
(
'm'
,
's'
,
0x00
,
0x55
)
):
p_track
->
fmt
.
i_codec
=
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'a'
);
break
;
case
(
VLC_FOURCC
(
'r'
,
'a'
,
'w'
,
' '
)
):
p_track
->
fmt
.
i_codec
=
VLC_FOURCC
(
'a'
,
'r'
,
'a'
,
'w'
);
/* Buggy files workaround */
if
(
p_sample
->
data
.
p_sample_soun
&&
(
p_track
->
i_timescale
!=
p_sample
->
data
.
p_sample_soun
->
i_sampleratehi
)
)
{
MP4_Box_data_sample_soun_t
*
p_soun
=
p_sample
->
data
.
p_sample_soun
;
msg_Warn
(
p_demux
,
"i_timescale ("
I64Fu
") != i_sampleratehi "
"(%u), making both equal (report any problem)."
,
p_track
->
i_timescale
,
p_soun
->
i_sampleratehi
);
if
(
p_soun
->
i_sampleratehi
)
p_track
->
i_timescale
=
p_soun
->
i_sampleratehi
;
else
p_soun
->
i_sampleratehi
=
p_track
->
i_timescale
;
}
break
;
case
(
VLC_FOURCC
(
's'
,
'2'
,
'6'
,
'3'
)
):
p_track
->
fmt
.
i_codec
=
VLC_FOURCC
(
'h'
,
'2'
,
'6'
,
'3'
);
break
;
...
...
@@ -1848,33 +1867,6 @@ static void MP4_TrackCreate( demux_t *p_demux, mp4_track_t *p_track,
}
}
/* Fix i_timescale for AUDIO_ES with i_qt_version == 0 */
if
(
p_track
->
fmt
.
i_cat
==
AUDIO_ES
&&
p_track
->
fmt
.
i_codec
!=
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'a'
)
)
{
MP4_Box_t
*
p_sample
;
p_sample
=
MP4_BoxGet
(
p_track
->
p_stsd
,
"[0]"
);
if
(
p_sample
&&
p_sample
->
data
.
p_sample_soun
)
{
MP4_Box_data_sample_soun_t
*
p_soun
=
p_sample
->
data
.
p_sample_soun
;
if
(
p_soun
->
i_qt_version
==
0
&&
p_track
->
i_timescale
!=
p_soun
->
i_sampleratehi
)
{
msg_Warn
(
p_demux
,
"i_timescale ("
I64Fu
") != i_sampleratehi (%u) with "
"qt_version == 0
\n
"
"Making both equal. (report any problem)"
,
p_track
->
i_timescale
,
p_soun
->
i_sampleratehi
);
if
(
p_soun
->
i_sampleratehi
)
p_track
->
i_timescale
=
p_soun
->
i_sampleratehi
;
else
p_soun
->
i_sampleratehi
=
p_track
->
i_timescale
;
}
}
}
/* Create chunk index table and sample index table */
if
(
TrackCreateChunksIndex
(
p_demux
,
p_track
)
||
TrackCreateSamplesIndex
(
p_demux
,
p_track
)
)
...
...
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