Commit 7cd5e3dd authored by vitor's avatar vitor

Minor simplification of dec2()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13391 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d7afcdf4
...@@ -290,17 +290,12 @@ static int eq(const short *in, int *target) ...@@ -290,17 +290,12 @@ static int eq(const short *in, int *target)
static int dec2(signed short *decsp, const int *data, const int *inp, static int dec2(signed short *decsp, const int *data, const int *inp,
int f, const int *inp2, int a) int f, const int *inp2, int a)
{ {
unsigned const int *ptr1,*ptr2;
int work[10]; int work[10];
int b = NBLOCKS - a; int b = NBLOCKS - a;
int x; int x;
unsigned short *sptr = decsp;
ptr1 = inp;
ptr2 = inp2;
for (x=0; x<30; x++) 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)) if (eq(decsp, work))
return dec1(decsp, data, inp, f); return dec1(decsp, data, inp, f);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment