From 44c32f2be9c9e4e8f557bdb4f6d22dc0520c62b6 Mon Sep 17 00:00:00 2001 From: vitor Date: Mon, 23 Jun 2008 20:18:51 +0000 Subject: [PATCH] Rename rotate_buffer() to copy_and_dup() and doxy it git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13919 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/ra144.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index 69c286e27..ac6a0b862 100644 --- a/libavcodec/ra144.c +++ b/libavcodec/ra144.c @@ -94,8 +94,11 @@ static void eval_coefs(const int *refl, int *coefs) coefs[x] >>= 4; } -/* rotate block */ -static void rotate_block(const int16_t *source, int16_t *target, int offset) +/** + * Copy the last offset values of *source to *target. If those values are not + * enough to fill the target buffer, fill it with another copy of those values. + */ +static void copy_and_dup(const int16_t *source, int16_t *target, int offset) { source += BUFFERSIZE - offset; @@ -215,7 +218,7 @@ static void do_output_subblock(RA144Context *ractx, if (cba_idx) { cba_idx += HALFBLOCK - 1; - rotate_block(ractx->adapt_cb, buffer_a, cba_idx); + copy_and_dup(ractx->adapt_cb, buffer_a, cba_idx); m[0] = irms(buffer_a, gval) >> 12; } else { m[0] = 0; -- 2.11.4.GIT