# HG changeset patch # User vitor # Date 1211620650 0 # Node ID 3feec67125d8a772208cb17d4be7a8229a5f26f7 # Parent 20a7e808dd82de9aa40ed39413076ba02d3261f1 More simplifications of ra144_decode_frame() diff -r 20a7e808dd82 -r 3feec67125d8 ra144.c --- a/ra144.c Sat May 24 09:15:01 2008 +0000 +++ b/ra144.c Sat May 24 09:17:30 2008 +0000 @@ -365,7 +365,6 @@ static const uint8_t sizes[10] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2}; unsigned int a, c; int i; - signed short *shptr; int16_t *data = vdata; unsigned int val; @@ -397,15 +396,12 @@ /* do output */ for (c=0; c<4; c++) { - unsigned int gval = glob->gbuf1[c]; - unsigned short *gsp = glob->gbuf2[c]; - signed short output_buffer[40]; + do_output_subblock(glob, glob->gbuf2[c], glob->gbuf1[c], data, &gb); - do_output_subblock(glob, gsp, gval, output_buffer, &gb); - - shptr = output_buffer; - while (shptr < output_buffer + BLOCKSIZE) - *data++ = av_clip_int16(*(shptr++) << 2); + for (i=0; ioldval = val;