Browse Source

libopencore-amr, libvo-amrwbenc: Make the bitrate/mode mapping array static const

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n0.8
Martin Storsjö 15 years ago
parent
commit
c48ce4eb50
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libavcodec/libopencore-amr.c
  2. +1
    -1
      libavcodec/libvo-amrwbenc.c

+ 1
- 1
libavcodec/libopencore-amr.c View File

@@ -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},


+ 1
- 1
libavcodec/libvo-amrwbenc.c View File

@@ -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},


Loading…
Cancel
Save