OSDN Git Service

More intermediate vars removal
authorVitor Sessak <vitor1001@gmail.com>
Wed, 28 May 2008 21:17:32 +0000 (21:17 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Wed, 28 May 2008 21:17:32 +0000 (21:17 +0000)
Originally committed as revision 13508 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ra144.c

index e09d38f..7ff1b13 100644 (file)
@@ -289,13 +289,11 @@ static int dec2(RA144Context *ractx, int16_t *decsp, int block_num,
                 int copynew, int f)
 {
     int work[10];
-    int a = block_num + 1;
-    int b = NBLOCKS - a;
 
     // Interpolate block coefficients from the this frame forth block and
     // last frame forth block
     ff_acelp_weighted_vector_sum(decsp, ractx->lpc_coef, ractx->lpc_coef_old,
-                                 a, b, 0, 2, 30);
+                                 block_num + 1, 3 - block_num, 0, 2, 30);
 
     if (eq(decsp, work)) {
         // The interpolated coefficients are unstable, copy either new or old