changeset 6888:b2f2c09af893 libavcodec

Merge two if's
author vitor
date Sun, 25 May 2008 19:48:03 +0000
parents 1b346861c9dc
children ff5fd5a1abf5
files ra144.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ra144.c	Sun May 25 19:00:13 2008 +0000
+++ b/ra144.c	Sun May 25 19:48:03 2008 +0000
@@ -214,16 +214,14 @@
     if (a) {
         a += HALFBLOCK - 1;
         rotate_block(glob->buffer_2, buffer_a, a);
+        m[0] = irms(buffer_a, gval) >> 12;
+    } else {
+        m[0] = 0;
     }
 
     m[1] = ((ftable1[b] >> 4) * gval) >> 8;
     m[2] = ((ftable2[c] >> 4) * gval) >> 8;
 
-    if (a)
-        m[0] = irms(buffer_a, gval) >> 12;
-    else
-        m[0] = 0;
-
     memmove(glob->buffer_2, glob->buffer_2 + BLOCKSIZE,
             (BUFFERSIZE - BLOCKSIZE) * 2);