Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
Steve Lhomme
VLC
Commits
957d8687
Commit
957d8687
authored
Jul 26, 2016
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: export new channels mapping when reordering
parent
c6bd1232
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
modules/demux/mp4/essetup.c
modules/demux/mp4/essetup.c
+10
-4
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+1
-1
No files found.
modules/demux/mp4/essetup.c
View file @
957d8687
...
...
@@ -969,11 +969,17 @@ int SetupAudioES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
}
}
rgi_chans_sequence
[
i_channels
]
=
0
;
p_track
->
b_chans_reorder
=
!!
aout_CheckChannelReorder
(
rgi_chans_sequence
,
NULL
,
i_vlc_mapping
,
p_track
->
rgi_chans_reordering
);
}
if
(
aout_CheckChannelReorder
(
rgi_chans_sequence
,
NULL
,
i_vlc_mapping
,
p_track
->
rgi_chans_reordering
)
&&
aout_BitsPerSample
(
p_track
->
fmt
.
i_codec
)
)
{
p_track
->
b_chans_reorder
=
true
;
p_track
->
fmt
.
audio
.
i_channels
=
i_channels
;
p_track
->
fmt
.
audio
.
i_physical_channels
=
p_track
->
fmt
.
audio
.
i_original_channels
=
i_vlc_mapping
;
}
}
}
SetupGlobalExtensions
(
p_track
,
p_sample
);
...
...
modules/demux/mp4/mp4.c
View file @
957d8687
...
...
@@ -434,7 +434,7 @@ static block_t * MP4_Block_Read( demux_t *p_demux, const mp4_track_t *p_track, i
static
void
MP4_Block_Send
(
demux_t
*
p_demux
,
mp4_track_t
*
p_track
,
block_t
*
p_block
)
{
if
(
p_track
->
b_chans_reorder
&&
aout_BitsPerSample
(
p_track
->
fmt
.
i_codec
)
)
if
(
p_track
->
b_chans_reorder
)
{
aout_ChannelReorder
(
p_block
->
p_buffer
,
p_block
->
i_buffer
,
p_track
->
fmt
.
audio
.
i_channels
,
...
...
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