changeset 6831:5ea1c314fae9 libavcodec

Minor simplification of rotate_block()
author vitor
date Sat, 17 May 2008 14:42:55 +0000
parents 13338d1e9d66
children 9584a95fefcd
files ra144.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ra144.c	Sat May 17 14:40:36 2008 +0000
+++ b/ra144.c	Sat May 17 14:42:55 2008 +0000
@@ -138,10 +138,10 @@
 static void rotate_block(const short *source, short *target, int offset)
 {
     int i=0, k=0;
-    const short *ptr1 = source + BUFFERSIZE - offset;
+    source += BUFFERSIZE - offset;
 
     while (i<BLOCKSIZE) {
-        target[i++] = ptr1[k++];
+        target[i++] = source[k++];
 
         if (k == offset)
             k = 0;