diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-22 13:35:38 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-25 11:49:43 -0500 |
commit | 4b7f8838e865bb2f803310ac2b27f9166309e4a0 (patch) | |
tree | 4da971ae7b627a3ca06bd28c5a81f182911c2d3b /libavcodec | |
parent | 03359ebcf99d2949f44069836224273d383b1638 (diff) | |
download | ffmpeg-4b7f8838e865bb2f803310ac2b27f9166309e4a0.tar.gz |
ra144enc: use int16_t* for input samples rather than void*
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ra144enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/ra144enc.c b/libavcodec/ra144enc.c index 5977928362..ff8316912f 100644 --- a/libavcodec/ra144enc.c +++ b/libavcodec/ra144enc.c @@ -441,6 +441,7 @@ static int ra144_encode_frame(AVCodecContext *avctx, uint8_t *frame, int16_t block_coefs[NBLOCKS][LPC_ORDER]; int lpc_refl[LPC_ORDER]; /**< reflection coefficients of the frame */ unsigned int refl_rms[NBLOCKS]; /**< RMS of the reflection coefficients */ + const int16_t *samples = data; int energy = 0; int i, idx; @@ -515,7 +516,7 @@ static int ra144_encode_frame(AVCodecContext *avctx, uint8_t *frame, ractx->lpc_refl_rms[1] = ractx->lpc_refl_rms[0]; FFSWAP(unsigned int *, ractx->lpc_coef[0], ractx->lpc_coef[1]); for (i = 0; i < NBLOCKS * BLOCKSIZE; i++) - ractx->curr_block[i] = *((int16_t *)data + i) >> 2; + ractx->curr_block[i] = samples[i] >> 2; return FRAMESIZE; } |