Mercurial > libavcodec.hg
comparison nellymoserdec.c @ 6218:dfdff1ca78a7 libavcodec
consts
I have underestimated this a little, and these are just some ...
| author | michael |
|---|---|
| date | Fri, 01 Feb 2008 03:26:31 +0000 |
| parents | 2fa5d656af8e |
| children | 48759bfbd073 |
comparison
equal
deleted
inserted
replaced
| 6217:f838213ca91b | 6218:dfdff1ca78a7 |
|---|---|
| 272 for(; i < NELLY_FILL_LEN; i++) | 272 for(; i < NELLY_FILL_LEN; i++) |
| 273 bits[i] = 0; | 273 bits[i] = 0; |
| 274 } | 274 } |
| 275 } | 275 } |
| 276 | 276 |
| 277 void nelly_decode_block(NellyMoserDecodeContext *s, unsigned char block[NELLY_BLOCK_LEN], float audio[NELLY_SAMPLES]) | 277 void nelly_decode_block(NellyMoserDecodeContext *s, const unsigned char block[NELLY_BLOCK_LEN], float audio[NELLY_SAMPLES]) |
| 278 { | 278 { |
| 279 int i,j; | 279 int i,j; |
| 280 float buf[NELLY_FILL_LEN], pows[NELLY_FILL_LEN]; | 280 float buf[NELLY_FILL_LEN], pows[NELLY_FILL_LEN]; |
| 281 float *aptr, *bptr, *pptr, val, pval; | 281 float *aptr, *bptr, *pptr, val, pval; |
| 282 int bits[NELLY_BUF_LEN]; | 282 int bits[NELLY_BUF_LEN]; |
| 356 return 0; | 356 return 0; |
| 357 } | 357 } |
| 358 | 358 |
| 359 static int decode_tag(AVCodecContext * avctx, | 359 static int decode_tag(AVCodecContext * avctx, |
| 360 void *data, int *data_size, | 360 void *data, int *data_size, |
| 361 uint8_t * buf, int buf_size) { | 361 const uint8_t * buf, int buf_size) { |
| 362 NellyMoserDecodeContext *s = avctx->priv_data; | 362 NellyMoserDecodeContext *s = avctx->priv_data; |
| 363 int blocks, i; | 363 int blocks, i; |
| 364 int16_t* samples; | 364 int16_t* samples; |
| 365 *data_size = 0; | 365 *data_size = 0; |
| 366 samples = (int16_t*)data; | 366 samples = (int16_t*)data; |
