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
c48ce4eb
Commit
c48ce4eb
authored
Apr 12, 2011
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libopencore-amr, libvo-amrwbenc: Make the bitrate/mode mapping array static const
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
900a129f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
libopencore-amr.c
libavcodec/libopencore-amr.c
+1
-1
libvo-amrwbenc.c
libavcodec/libvo-amrwbenc.c
+1
-1
No files found.
libavcodec/libopencore-amr.c
View file @
c48ce4eb
...
...
@@ -53,7 +53,7 @@ typedef struct AMR_bitrates {
static
int
getBitrateMode
(
int
bitrate
)
{
/* make the correspondance between bitrate and mode */
AMR_bitrates
rates
[]
=
{
{
4750
,
MR475
},
static
const
AMR_bitrates
rates
[]
=
{
{
4750
,
MR475
},
{
5150
,
MR515
},
{
5900
,
MR59
},
{
6700
,
MR67
},
...
...
libavcodec/libvo-amrwbenc.c
View file @
c48ce4eb
...
...
@@ -41,7 +41,7 @@ typedef struct AMRWBContext {
static
int
getWBBitrateMode
(
int
bitrate
)
{
/* make the correspondance between bitrate and mode */
AMRWB_bitrates
rates
[]
=
{
{
6600
,
0
},
static
const
AMRWB_bitrates
rates
[]
=
{
{
6600
,
0
},
{
8850
,
1
},
{
12650
,
2
},
{
14250
,
3
},
...
...
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