Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
6bbaf6e0
Commit
6bbaf6e0
authored
Feb 22, 2012
by
Tim Walker
Committed by
Justin Ruggles
Feb 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlpdec_parser: fix a few channel layouts.
Signed-off-by:
Justin Ruggles
<
justin.ruggles@gmail.com
>
parent
147715ca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
mlp_parser.c
libavcodec/mlp_parser.c
+5
-4
No files found.
libavcodec/mlp_parser.c
View file @
6bbaf6e0
...
...
@@ -79,13 +79,13 @@ static const uint64_t thd_layout[13] = {
AV_CH_LOW_FREQUENCY
,
// LFE
AV_CH_SIDE_LEFT
|
AV_CH_SIDE_RIGHT
,
// LRs
AV_CH_TOP_FRONT_LEFT
|
AV_CH_TOP_FRONT_RIGHT
,
// LRvh
AV_CH_
SIDE_LEFT
|
AV_CH_SIDE_RIGHT
,
// LRc
AV_CH_
FRONT_LEFT_OF_CENTER
|
AV_CH_FRONT_RIGHT_OF_CENTER
,
// LRc
AV_CH_BACK_LEFT
|
AV_CH_BACK_RIGHT
,
// LRrs
AV_CH_BACK_CENTER
,
// Cs
AV_CH_TOP_BACK_CENTER
,
// Ts
AV_CH_SIDE_LEFT
|
AV_CH_SIDE_RIGHT
,
// LRsd
AV_CH_
FRONT_LEFT_OF_CENTER
|
AV_CH_FRONT_RIGHT_OF_CENTER
,
// LRw
AV_CH_TOP_
BACK_CENTER
,
// Cvh
AV_CH_
WIDE_LEFT
|
AV_CH_WIDE_RIGHT
,
// LRw
AV_CH_TOP_
FRONT_CENTER
,
// Cvh
AV_CH_LOW_FREQUENCY
// LFE2
};
...
...
@@ -109,7 +109,8 @@ static int truehd_channels(int chanmap)
static
uint64_t
truehd_layout
(
int
chanmap
)
{
int
layout
=
0
,
i
;
int
i
;
uint64_t
layout
=
0
;
for
(
i
=
0
;
i
<
13
;
i
++
)
layout
|=
thd_layout
[
i
]
*
((
chanmap
>>
i
)
&
1
);
...
...
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