diff ra144.c @ 6879:a63a7b23d4ba libavcodec

Minor simplification of dec1()
author vitor
date Sun, 25 May 2008 16:52:14 +0000
parents 1cec54d18a84
children c39a7f5f10cb
line wrap: on
line diff
--- a/ra144.c	Sun May 25 16:50:08 2008 +0000
+++ b/ra144.c	Sun May 25 16:52:14 2008 +0000
@@ -234,12 +234,10 @@
 static int dec1(signed short *decsp, const int *data, const int *inp,
                  int f)
 {
-    short *ptr,*end;
+    int i;
 
-    end = (ptr = decsp) + 30;
-
-    while (ptr < end)
-        *(ptr++) = *(inp++);
+    for (i=0; i<30; i++)
+        *(decsp++) = *(inp++);
 
     return rms(data, f);
 }