Mercurial > libavcodec.hg
diff a52dec.c @ 1064:b32afefe7d33 libavcodec
* UINTX -> uintx_t INTX -> intx_t
author | kabi |
---|---|
date | Tue, 11 Feb 2003 16:35:48 +0000 |
parents | 696ccd81403e |
children | 1e39f273ecd6 |
line wrap: on
line diff
--- a/a52dec.c Mon Feb 10 22:43:30 2003 +0000 +++ b/a52dec.c Tue Feb 11 16:35:48 2003 +0000 @@ -29,8 +29,8 @@ * released under the GPL license. */ typedef struct AC3DecodeState { - UINT8 inbuf[4096]; /* input buffer */ - UINT8 *inbuf_ptr; + uint8_t inbuf[4096]; /* input buffer */ + uint8_t *inbuf_ptr; int frame_size; int flags; int channels; @@ -123,7 +123,7 @@ return i - 0x43c00000; } -static inline void float_to_int (float * _f, INT16 * s16, int nchannels) +static inline void float_to_int (float * _f, int16_t * s16, int nchannels) { int i, j, c; int32_t * f = (int32_t *) _f; // XXX assumes IEEE float format @@ -142,10 +142,10 @@ static int a52_decode_frame(AVCodecContext *avctx, void *data, int *data_size, - UINT8 *buf, int buf_size) + uint8_t *buf, int buf_size) { AC3DecodeState *s = avctx->priv_data; - UINT8 *buf_ptr; + uint8_t *buf_ptr; int flags, i, len; int sample_rate, bit_rate; short *out_samples = data; @@ -221,7 +221,7 @@ } s->inbuf_ptr = s->inbuf; s->frame_size = 0; - *data_size = 6 * avctx->channels * 256 * sizeof(INT16); + *data_size = 6 * avctx->channels * 256 * sizeof(int16_t); break; } }