summaryrefslogtreecommitdiff
path: root/libavcodec/ra144.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-05-25 17:04:42 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-05-25 17:04:42 +0000
commit6fc4fac06c0b81c2ada77496d85a9e2813d8235d (patch)
treee11b71dfcea69634a948d9a9bcd74cacb9750ad9 /libavcodec/ra144.c
parentb906a5e3b70835f3796a3fad3aacb957f27093cd (diff)
More cosmetics
Originally committed as revision 13395 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra144.c')
-rw-r--r--libavcodec/ra144.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c
index 8bbc7df5bb..ab9161e1e0 100644
--- a/libavcodec/ra144.c
+++ b/libavcodec/ra144.c
@@ -199,7 +199,9 @@ static unsigned int rms(const int *data, int f)
}
/* do quarter-block output */
-static void do_output_subblock(Real144_internal *glob, const unsigned short *gsp, unsigned int gval, signed short *output_buffer, GetBitContext *gb)
+static void do_output_subblock(Real144_internal *glob,
+ const unsigned short *gsp, unsigned int gval,
+ signed short *output_buffer, GetBitContext *gb)
{
unsigned short int buffer_a[40];
unsigned short int *block;
@@ -222,7 +224,9 @@ static void do_output_subblock(Real144_internal *glob, const unsigned short *gs
else
m[0] = 0;
- memmove(glob->buffer_2, glob->buffer_2 + BLOCKSIZE, (BUFFERSIZE - BLOCKSIZE) * 2);
+ memmove(glob->buffer_2, glob->buffer_2 + BLOCKSIZE,
+ (BUFFERSIZE - BLOCKSIZE) * 2);
+
block = glob->buffer_2 + BUFFERSIZE - BLOCKSIZE;
add_wav(d, a, m, buffer_a, etable1[b], etable2[c], block);
@@ -230,8 +234,7 @@ static void do_output_subblock(Real144_internal *glob, const unsigned short *gs
final(gsp, block, output_buffer, glob->buffer, BLOCKSIZE);
}
-static int dec1(signed short *decsp, const int *data, const int *inp,
- int f)
+static int dec1(signed short *decsp, const int *data, const int *inp, int f)
{
int i;
@@ -302,8 +305,8 @@ static int dec2(signed short *decsp, const int *data, const int *inp,
/* Uncompress one block (20 bytes -> 160*2 bytes) */
static int ra144_decode_frame(AVCodecContext * avctx,
- void *vdata, int *data_size,
- const uint8_t * buf, int buf_size)
+ void *vdata, int *data_size,
+ const uint8_t * buf, int buf_size)
{
static const uint8_t sizes[10] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2};
unsigned int gbuf1[4];