aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ra288.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-10-29 00:09:03 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-11-08 12:36:41 -0500
commit03e5d6118c239edc0f420d8912454d8b37f789f3 (patch)
tree508a0cbd5fe0b4407fd4e4e023fd518b66676c00 /libavcodec/ra288.c
parentf50b6be57d2e68823a690c5a98639e1ac73bbd3e (diff)
downloadffmpeg-03e5d6118c239edc0f420d8912454d8b37f789f3.tar.gz
ra288: use memcpy() to copy decoded samples to output
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r--libavcodec/ra288.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index 2166d8ca61..d82e52df2f 100644
--- a/libavcodec/ra288.c
+++ b/libavcodec/ra288.c
@@ -168,7 +168,7 @@ static int ra288_decode_frame(AVCodecContext * avctx, void *data,
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
float *out = data;
- int i, j, out_size;
+ int i, out_size;
RA288Context *ractx = avctx->priv_data;
GetBitContext gb;
@@ -194,8 +194,8 @@ static int ra288_decode_frame(AVCodecContext * avctx, void *data,
decode(ractx, gain, cb_coef);
- for (j=0; j < RA288_BLOCK_SIZE; j++)
- *(out++) = ractx->sp_hist[70 + 36 + j];
+ memcpy(out, &ractx->sp_hist[70 + 36], RA288_BLOCK_SIZE * sizeof(*out));
+ out += RA288_BLOCK_SIZE;
if ((i & 7) == 3) {
backward_filter(ractx->sp_hist, ractx->sp_rec, syn_window,