Skip to content

Commit

Permalink
stagefright amrwb: Make a global const array static
Browse files Browse the repository at this point in the history
This fixes compilation as C - while the source files are named
.cpp, they actually are compileable as pure C. Prior to this,
this table produced multiple definitions of the same symbol.

This was committed on the master branch of the opencore
repository in commit a803bd49a631317e0d52ff060cf1799f7741a47e,
based on AOSP contribution 10017.

Change-Id: Id76274964242b119ab61b8181e557477df1e1521
  • Loading branch information
mstorsjo committed Feb 24, 2012
1 parent 6a300a5 commit 7a60831
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ extern "C"
#define NUM_OF_MODES 10


const int16 AMR_WB_COMPRESSED[NUM_OF_MODES] =
static const int16 AMR_WB_COMPRESSED[NUM_OF_MODES] =
{
NBBITS_7k,
NBBITS_9k,
Expand Down

0 comments on commit 7a60831

Please sign in to comment.