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
f5b31daa
Commit
f5b31daa
authored
Oct 02, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libopusenc: use more specific and correct name for the channel order
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e88ca80d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
libopusenc.c
libavcodec/libopusenc.c
+3
-3
No files found.
libavcodec/libopusenc.c
View file @
f5b31daa
...
...
@@ -65,8 +65,8 @@ static const uint8_t opus_vorbis_channel_map[8][8] = {
{
0
,
6
,
1
,
2
,
3
,
4
,
5
,
7
},
};
/* libav to libopus channel order mapping, passed to libopus */
static
const
uint8_t
libav_libopus_channel_map
[
8
][
8
]
=
{
/* libav
codec
to libopus channel order mapping, passed to libopus */
static
const
uint8_t
libav
codec
_libopus_channel_map
[
8
][
8
]
=
{
{
0
},
{
0
,
1
},
{
0
,
1
,
2
},
...
...
@@ -159,7 +159,7 @@ static int av_cold libopus_encode_init(AVCodecContext *avctx)
coupled_stream_count
=
opus_coupled_streams
[
avctx
->
channels
-
1
];
opus
->
stream_count
=
avctx
->
channels
-
coupled_stream_count
;
channel_mapping
=
libav_libopus_channel_map
[
avctx
->
channels
-
1
];
channel_mapping
=
libav
codec
_libopus_channel_map
[
avctx
->
channels
-
1
];
/* FIXME: Opus can handle up to 255 channels. However, the mapping for
* anything greater than 8 is undefined. */
...
...
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