mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
ra288: use memcpy() to copy decoded samples to output
This commit is contained in:
parent
f50b6be57d
commit
03e5d6118c
@ -168,7 +168,7 @@ static int ra288_decode_frame(AVCodecContext * avctx, void *data,
|
|||||||
const uint8_t *buf = avpkt->data;
|
const uint8_t *buf = avpkt->data;
|
||||||
int buf_size = avpkt->size;
|
int buf_size = avpkt->size;
|
||||||
float *out = data;
|
float *out = data;
|
||||||
int i, j, out_size;
|
int i, out_size;
|
||||||
RA288Context *ractx = avctx->priv_data;
|
RA288Context *ractx = avctx->priv_data;
|
||||||
GetBitContext gb;
|
GetBitContext gb;
|
||||||
|
|
||||||
@ -194,8 +194,8 @@ static int ra288_decode_frame(AVCodecContext * avctx, void *data,
|
|||||||
|
|
||||||
decode(ractx, gain, cb_coef);
|
decode(ractx, gain, cb_coef);
|
||||||
|
|
||||||
for (j=0; j < RA288_BLOCK_SIZE; j++)
|
memcpy(out, &ractx->sp_hist[70 + 36], RA288_BLOCK_SIZE * sizeof(*out));
|
||||||
*(out++) = ractx->sp_hist[70 + 36 + j];
|
out += RA288_BLOCK_SIZE;
|
||||||
|
|
||||||
if ((i & 7) == 3) {
|
if ((i & 7) == 3) {
|
||||||
backward_filter(ractx->sp_hist, ractx->sp_rec, syn_window,
|
backward_filter(ractx->sp_hist, ractx->sp_rec, syn_window,
|
||||||
|
Loading…
Reference in New Issue
Block a user