summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-05-25 16:52:14 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-05-25 16:52:14 +0000
commitac1c27b21c1ec55fc5b33469c3535c448514d0eb (patch)
tree860cbf904c75b6056c6fdbfce2dcc1259dfc0195
parent4bf8f3029bc8bc1f01874a83b4d48b41ac128252 (diff)
Minor simplification of dec1()
Originally committed as revision 13392 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/ra144.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c
index 7af1bb0cb2..dbc01cfe2b 100644
--- a/libavcodec/ra144.c
+++ b/libavcodec/ra144.c
@@ -234,12 +234,10 @@ static void do_output_subblock(Real144_internal *glob, const unsigned short *gs
static int dec1(signed short *decsp, const int *data, const int *inp,
int f)
{
- short *ptr,*end;
-
- end = (ptr = decsp) + 30;
+ int i;
- while (ptr < end)
- *(ptr++) = *(inp++);
+ for (i=0; i<30; i++)
+ *(decsp++) = *(inp++);
return rms(data, f);
}