[FFmpeg-cvslog] libopencore-amr, libvo-amrwbenc: Make the bitrate/ mode mapping array static const
Martin Storsjö
git at videolan.org
Thu Apr 14 03:24:37 CEST 2011
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Apr 13 00:15:01 2011 +0300| [c48ce4eb50ff299db8f9d0289442ec655a1fb053] | committer: Martin Storsjö
libopencore-amr, libvo-amrwbenc: Make the bitrate/mode mapping array static const
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c48ce4eb50ff299db8f9d0289442ec655a1fb053
---
libavcodec/libopencore-amr.c | 2 +-
libavcodec/libvo-amrwbenc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c
index a81d272..b1eb65c 100644
--- a/libavcodec/libopencore-amr.c
+++ b/libavcodec/libopencore-amr.c
@@ -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},
diff --git a/libavcodec/libvo-amrwbenc.c b/libavcodec/libvo-amrwbenc.c
index a5e8f39..8ef4f81 100644
--- a/libavcodec/libvo-amrwbenc.c
+++ b/libavcodec/libvo-amrwbenc.c
@@ -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},
More information about the ffmpeg-cvslog
mailing list