summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-05-24 20:51:56 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-05-24 20:51:56 +0000
commitae76c49908af771fdc5a432e5a31fc013fabf202 (patch)
tree705124ef9a0e277b442d398e720c16abe52f2b77 /libavcodec
parente2b5fdaf11e59f295608ed74dc8c422af7a21147 (diff)
Remove another useless variable from context
Originally committed as revision 13361 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ra144.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c
index d4dc47733c..f4def6b61d 100644
--- a/libavcodec/ra144.c
+++ b/libavcodec/ra144.c
@@ -34,7 +34,6 @@ typedef struct {
unsigned int oldval;
unsigned int gbuf1[4];
unsigned short gbuf2[4][30];
- unsigned int *decptr; /* decoder ptr */
/* the swapped buffers */
unsigned int swapbuffers[4][10];
@@ -246,7 +245,7 @@ static void dec1(Real144_internal *glob, const int *data, const int *inp,
short *ptr,*end;
signed short *decsp = glob->gbuf2[block_idx];
- *(glob->decptr++) = rms(data, f);
+ glob->gbuf1[block_idx] = rms(data, f);
end = (ptr = decsp) + (n * 10);
while (ptr < end)
@@ -314,9 +313,6 @@ static void dec2(Real144_internal *glob, const int *data, const int *inp,
b = NBLOCKS - a;
- if (l == 0) {
- glob->decptr = glob->gbuf1;
- }
ptr1 = inp;
ptr2 = inp2;
@@ -328,7 +324,7 @@ static void dec2(Real144_internal *glob, const int *data, const int *inp,
if (result == 1) {
dec1(glob, data, inp, n, f, l);
} else {
- *(glob->decptr++) = rms(work, f);
+ glob->gbuf1[l] = rms(work, f);
}
}