mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 19:59:46 +00:00
libopencore-amr, libvo-amrwbenc: Make the bitrate/mode mapping array static const
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
900a129f4f
commit
c48ce4eb50
@ -53,7 +53,7 @@ typedef struct AMR_bitrates {
|
|||||||
static int getBitrateMode(int bitrate)
|
static int getBitrateMode(int bitrate)
|
||||||
{
|
{
|
||||||
/* make the correspondance between bitrate and mode */
|
/* make the correspondance between bitrate and mode */
|
||||||
AMR_bitrates rates[] = { { 4750, MR475},
|
static const AMR_bitrates rates[] = {{ 4750, MR475},
|
||||||
{ 5150, MR515},
|
{ 5150, MR515},
|
||||||
{ 5900, MR59},
|
{ 5900, MR59},
|
||||||
{ 6700, MR67},
|
{ 6700, MR67},
|
||||||
|
@ -41,7 +41,7 @@ typedef struct AMRWBContext {
|
|||||||
static int getWBBitrateMode(int bitrate)
|
static int getWBBitrateMode(int bitrate)
|
||||||
{
|
{
|
||||||
/* make the correspondance between bitrate and mode */
|
/* make the correspondance between bitrate and mode */
|
||||||
AMRWB_bitrates rates[] = { { 6600, 0},
|
static const AMRWB_bitrates rates[] = { { 6600, 0},
|
||||||
{ 8850, 1},
|
{ 8850, 1},
|
||||||
{12650, 2},
|
{12650, 2},
|
||||||
{14250, 3},
|
{14250, 3},
|
||||||
|
Loading…
Reference in New Issue
Block a user