From f7813a5324be39d13ab536c245d15dfc602a7849 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sun, 29 Dec 2013 12:19:38 +0000 Subject: basic type mechanism working --- ffmpeg/libavcodec/ra144.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ffmpeg/libavcodec/ra144.h') diff --git a/ffmpeg/libavcodec/ra144.h b/ffmpeg/libavcodec/ra144.h index eb89398..763495d 100644 --- a/ffmpeg/libavcodec/ra144.h +++ b/ffmpeg/libavcodec/ra144.h @@ -30,7 +30,7 @@ #define BLOCKSIZE 40 ///< subblock size in 16-bit words #define BUFFERSIZE 146 ///< the size of the adaptive codebook #define FIXED_CB_SIZE 128 ///< size of fixed codebooks -#define FRAMESIZE 20 ///< size of encoded frame +#define FRAME_SIZE 20 ///< size of encoded frame #define LPC_ORDER 10 ///< order of LPC filter typedef struct RA144Context { @@ -56,7 +56,7 @@ typedef struct RA144Context { /** Adaptive codebook, its size is two units bigger to avoid a * buffer overflow. */ - uint16_t adapt_cb[146+2]; + int16_t adapt_cb[146+2]; } RA144Context; void ff_copy_and_dup(int16_t *target, const int16_t *source, int offset); @@ -69,7 +69,7 @@ int ff_interp(RA144Context *ractx, int16_t *out, int a, int copyold, int energy); unsigned int ff_rescale_rms(unsigned int rms, unsigned int energy); int ff_irms(const int16_t *data); -void ff_subblock_synthesis(RA144Context *ractx, const uint16_t *lpc_coefs, +void ff_subblock_synthesis(RA144Context *ractx, const int16_t *lpc_coefs, int cba_idx, int cb1_idx, int cb2_idx, int gval, int gain); -- cgit v1.2.3