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
fff0f831
Commit
fff0f831
authored
Sep 25, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp3on4: fix the output channel order
parent
f507dd06
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mpegaudiodec.c
libavcodec/mpegaudiodec.c
+4
-4
No files found.
libavcodec/mpegaudiodec.c
View file @
fff0f831
...
...
@@ -1901,16 +1901,16 @@ typedef struct MP3On4DecodeContext {
/* Next 3 arrays are indexed by channel config number (passed via codecdata) */
static
const
uint8_t
mp3Frames
[
8
]
=
{
0
,
1
,
1
,
2
,
3
,
3
,
4
,
5
};
/* number of mp3 decoder instances */
/* offsets into output buffer, assume output order is FL FR
BL BR C LFE
*/
/* offsets into output buffer, assume output order is FL FR
C LFE BL BR SL SR
*/
static
const
uint8_t
chan_offset
[
8
][
5
]
=
{
{
0
},
{
0
},
// C
{
0
},
// FLR
{
2
,
0
},
// C FLR
{
2
,
0
,
3
},
// C FLR BS
{
4
,
0
,
2
},
// C FLR BLRS
{
4
,
0
,
2
,
5
},
// C FLR BLRS LFE
{
4
,
0
,
2
,
6
,
5
},
// C FLR BLRS BLR LFE
{
2
,
0
,
3
},
// C FLR BLRS
{
2
,
0
,
4
,
3
},
// C FLR BLRS LFE
{
2
,
0
,
6
,
4
,
3
},
// C FLR BLRS BLR LFE
};
...
...
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