diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-05-25 16:50:08 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-05-25 16:50:08 +0000 |
commit | 4bf8f3029bc8bc1f01874a83b4d48b41ac128252 (patch) | |
tree | afb9329b43552d0446cad6e088d9bafb20cd73e4 /libavcodec | |
parent | c62c628fb35ccb578fb1542d5308678cebc5b6e4 (diff) | |
download | ffmpeg-4bf8f3029bc8bc1f01874a83b4d48b41ac128252.tar.gz |
Minor simplification of dec2()
Originally committed as revision 13391 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ra144.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index abaf46f61d..7af1bb0cb2 100644 --- a/libavcodec/ra144.c +++ b/libavcodec/ra144.c @@ -290,17 +290,12 @@ static int eq(const short *in, int *target) 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); |