lavc/evrcdec: fix const misplacement

Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
pull/43/merge
Lukasz Marek 11 years ago committed by Paul B Mahol
parent ec9578d54d
commit 0792b87335
  1. 8
      libavcodec/evrcdata.h
  2. 2
      libavcodec/evrcdec.c

@ -1437,21 +1437,21 @@ static const float evrc_lspq_quant_codebook2[16][5] = {
{0.22787990, 0.31779197, 0.33831909, 0.40044111, 0.41185561},
{0.27896860, 0.32261974, 0.35658112, 0.40206763, 0.42370448}};
static const float const *evrc_lspq_full_codebooks[] = {
static const float * const evrc_lspq_full_codebooks[] = {
evrc_lspq_full_codebook1[0], evrc_lspq_full_codebook2[0],
evrc_lspq_full_codebook3[0], evrc_lspq_full_codebook4[0],
};
static const float const *evrc_lspq_half_codebooks[] = {
static const float * const evrc_lspq_half_codebooks[] = {
evrc_lspq_half_codebook1[0], evrc_lspq_half_codebook2[0],
evrc_lspq_half_codebook3[0],
};
static const float const *evrc_lspq_quant_codebooks[] = {
static const float * const evrc_lspq_quant_codebooks[] = {
evrc_lspq_quant_codebook1[0], evrc_lspq_quant_codebook2[0],
};
static const float const **evrc_lspq_codebooks[] = {
static const float * const *evrc_lspq_codebooks[] = {
0,
evrc_lspq_quant_codebooks,
0,

@ -276,7 +276,7 @@ static av_cold int evrc_decode_init(AVCodecContext *avctx)
*/
static int decode_lspf(EVRCContext *e)
{
const float **codebooks = evrc_lspq_codebooks[e->bitrate];
const float * const *codebooks = evrc_lspq_codebooks[e->bitrate];
int i, j, k = 0;
for (i = 0; i < evrc_lspq_nb_codebooks[e->bitrate]; i++) {

Loading…
Cancel
Save