mvp: make the mvp_sample_rates array const
The array must never be modified, it's a constant lookup table.
This commit is contained in:
parent
99f535ad77
commit
b4c65cac8c
@ -68,7 +68,7 @@ struct mvp_data {
|
|||||||
int fd;
|
int fd;
|
||||||
};
|
};
|
||||||
|
|
||||||
static unsigned mvp_sample_rates[][3] = {
|
static const unsigned mvp_sample_rates[][3] = {
|
||||||
{9, 8000, 32000},
|
{9, 8000, 32000},
|
||||||
{10, 11025, 44100},
|
{10, 11025, 44100},
|
||||||
{11, 12000, 48000},
|
{11, 12000, 48000},
|
||||||
|
Loading…
Reference in New Issue
Block a user