Mercurial > libavcodec.hg
changeset 6878:1cec54d18a84 libavcodec
Minor simplification of dec2()
author | vitor |
---|---|
date | Sun, 25 May 2008 16:50:08 +0000 |
parents | 8a6e6efeaee5 |
children | a63a7b23d4ba |
files | ra144.c |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/ra144.c Sun May 25 16:46:05 2008 +0000 +++ b/ra144.c Sun May 25 16:50:08 2008 +0000 @@ -290,17 +290,12 @@ static int dec2(signed short *decsp, const int *data, const int *inp, int f, const int *inp2, int a) { - unsigned const int *ptr1,*ptr2; int work[10]; int b = NBLOCKS - a; int x; - unsigned short *sptr = decsp; - - ptr1 = inp; - ptr2 = inp2; for (x=0; x<30; x++) - *(sptr++) = (a * (*ptr1++) + b * (*ptr2++)) >> 2; + decsp[x] = (a * inp[x] + b * inp2[x]) >> 2; if (eq(decsp, work)) return dec1(decsp, data, inp, f);