comparison wmaenc.c @ 5258:4372aeade5dc libavcodec

trivial warning fixes
author mru
date Sun, 08 Jul 2007 23:15:08 +0000
parents bff60ecc02f9
children 4de95581b38a
comparison
equal deleted inserted replaced
5257:f2eaf5afe6ae 5258:4372aeade5dc
92 ff_mdct_calc(&s->mdct_ctx[window_index], s->coefs[channel], s->output, s->mdct_tmp); 92 ff_mdct_calc(&s->mdct_ctx[window_index], s->coefs[channel], s->output, s->mdct_tmp);
93 } 93 }
94 } 94 }
95 95
96 //FIXME use for decoding too 96 //FIXME use for decoding too
97 static void init_exp(WMACodecContext *s, int ch, int *exp_param){ 97 static void init_exp(WMACodecContext *s, int ch, const int *exp_param){
98 int n; 98 int n;
99 const uint16_t *ptr; 99 const uint16_t *ptr;
100 float v, *q, max_scale, *q_end; 100 float v, *q, max_scale, *q_end;
101 101
102 ptr = s->exponent_bands[s->frame_len_bits - s->block_len_bits]; 102 ptr = s->exponent_bands[s->frame_len_bits - s->block_len_bits];
322 322
323 static int encode_superframe(AVCodecContext *avctx, 323 static int encode_superframe(AVCodecContext *avctx,
324 unsigned char *buf, int buf_size, void *data){ 324 unsigned char *buf, int buf_size, void *data){
325 WMACodecContext *s = avctx->priv_data; 325 WMACodecContext *s = avctx->priv_data;
326 short *samples = data; 326 short *samples = data;
327 int i, total_gain, best; 327 int i, total_gain;
328 328
329 s->block_len_bits= s->frame_len_bits; //required by non variable block len 329 s->block_len_bits= s->frame_len_bits; //required by non variable block len
330 s->block_len = 1 << s->block_len_bits; 330 s->block_len = 1 << s->block_len_bits;
331 331
332 apply_window_and_mdct(avctx, samples, avctx->frame_size); 332 apply_window_and_mdct(avctx, samples, avctx->frame_size);