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
dfcd6d91
Commit
dfcd6d91
authored
Apr 26, 2008
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
values can fit uint8_t
Originally committed as revision 12980 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
183fceaa
Hide 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 @
dfcd6d91
...
...
@@ -2476,10 +2476,10 @@ static int decode_frame_adu(AVCodecContext * avctx,
#ifdef CONFIG_MP3ON4_DECODER
/* Next 3 arrays are indexed by channel config number (passed via codecdata) */
static
const
in
t
mp3Frames
[
16
]
=
{
0
,
1
,
1
,
2
,
3
,
3
,
4
,
5
,
2
};
/* number of mp3 decoder instances */
static
const
in
t
mp3Channels
[
16
]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
8
,
4
};
/* total output channels */
static
const
uint8_
t
mp3Frames
[
16
]
=
{
0
,
1
,
1
,
2
,
3
,
3
,
4
,
5
,
2
};
/* number of mp3 decoder instances */
static
const
uint8_
t
mp3Channels
[
16
]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
8
,
4
};
/* total output channels */
/* offsets into output buffer, assume output order is FL FR BL BR C LFE */
static
const
in
t
chan_offset
[
9
][
5
]
=
{
static
const
uint8_
t
chan_offset
[
9
][
5
]
=
{
{
0
},
{
0
},
// C
{
0
},
// FLR
...
...
@@ -2566,7 +2566,7 @@ static int decode_frame_mp3on4(AVCodecContext * avctx,
const
unsigned
char
*
start2
=
buf
,
*
start
;
int
fr
,
i
,
j
,
n
;
int
off
=
avctx
->
channels
;
const
in
t
*
coff
=
chan_offset
[
s
->
chan_cfg
];
const
uint8_
t
*
coff
=
chan_offset
[
s
->
chan_cfg
];
len
=
buf_size
;
...
...
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