Fixed a bunch of warnings
This commit is contained in:
parent
a1bc18a388
commit
d9de593104
3 changed files with 6 additions and 6 deletions
|
@ -512,14 +512,13 @@ void celt_decoder_destroy(CELTDecoder *st)
|
||||||
pitch period */
|
pitch period */
|
||||||
static void celt_decode_lost(CELTDecoder *st, short *pcm)
|
static void celt_decode_lost(CELTDecoder *st, short *pcm)
|
||||||
{
|
{
|
||||||
int i, c, N, B, C, N4;
|
int i, c, N, B, C;
|
||||||
int pitch_index;
|
int pitch_index;
|
||||||
VARDECL(celt_sig_t *freq);
|
VARDECL(celt_sig_t *freq);
|
||||||
SAVE_STACK;
|
SAVE_STACK;
|
||||||
N = st->block_size;
|
N = st->block_size;
|
||||||
B = st->nb_blocks;
|
B = st->nb_blocks;
|
||||||
C = st->mode->nbChannels;
|
C = st->mode->nbChannels;
|
||||||
N4 = (N-st->overlap)/2;
|
|
||||||
ALLOC(freq,C*B*N, celt_sig_t); /**< Interleaved signal MDCTs */
|
ALLOC(freq,C*B*N, celt_sig_t); /**< Interleaved signal MDCTs */
|
||||||
|
|
||||||
pitch_index = st->last_pitch_index;
|
pitch_index = st->last_pitch_index;
|
||||||
|
|
|
@ -216,7 +216,7 @@ static void compute_allocation_table(CELTMode *mode, int res)
|
||||||
CELTMode *celt_mode_create(int Fs, int channels, int frame_size, int lookahead, int *error)
|
CELTMode *celt_mode_create(int Fs, int channels, int frame_size, int lookahead, int *error)
|
||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
int N, N2, N4, i;
|
int N, i;
|
||||||
CELTMode *mode;
|
CELTMode *mode;
|
||||||
|
|
||||||
/* The good thing here is that permutation of the arguments will automatically be invalid */
|
/* The good thing here is that permutation of the arguments will automatically be invalid */
|
||||||
|
@ -266,8 +266,6 @@ CELTMode *celt_mode_create(int Fs, int channels, int frame_size, int lookahead,
|
||||||
/*printf ("%d bands\n", mode->nbEBands);*/
|
/*printf ("%d bands\n", mode->nbEBands);*/
|
||||||
|
|
||||||
N = mode->mdctSize;
|
N = mode->mdctSize;
|
||||||
N2 = N/2;
|
|
||||||
N4 = N/4;
|
|
||||||
mdct_init(&mode->mdct, 2*N);
|
mdct_init(&mode->mdct, 2*N);
|
||||||
|
|
||||||
mode->window = (celt_word16_t*)celt_alloc(mode->overlap*sizeof(celt_word16_t));
|
mode->window = (celt_word16_t*)celt_alloc(mode->overlap*sizeof(celt_word16_t));
|
||||||
|
|
|
@ -69,9 +69,12 @@ static void mix_pitch_and_residual(int *iy, celt_norm_t *X, int N, int K, const
|
||||||
celt_word32_t Ryp, Ryy, Rpp;
|
celt_word32_t Ryp, Ryy, Rpp;
|
||||||
celt_word32_t g;
|
celt_word32_t g;
|
||||||
VARDECL(celt_norm_t *y);
|
VARDECL(celt_norm_t *y);
|
||||||
|
#ifdef FIXED_POINT
|
||||||
|
int yshift;
|
||||||
|
#endif
|
||||||
SAVE_STACK;
|
SAVE_STACK;
|
||||||
#ifdef FIXED_POINT
|
#ifdef FIXED_POINT
|
||||||
int yshift = 14-EC_ILOG(K);
|
yshift = 14-EC_ILOG(K);
|
||||||
#endif
|
#endif
|
||||||
ALLOC(y, N, celt_norm_t);
|
ALLOC(y, N, celt_norm_t);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue