changeset 9508:41ab6db265d0 libavcodec

mlpdec: Read context variable to local variable to make code cleaner.
author ramiro
date Sat, 18 Apr 2009 20:23:13 +0000
parents 7e156421dcbc
children 2838045383c5
files mlpdec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mlpdec.c	Sat Apr 18 19:52:52 2009 +0000
+++ b/mlpdec.c	Sat Apr 18 20:23:13 2009 +0000
@@ -849,6 +849,7 @@
         /* TODO: DSPContext? */
 
         for (i = 0; i < s->blockpos; i++) {
+            int32_t bypassed_lsb = m->bypassed_lsbs[i][mat];
             int32_t *samples = m->sample_buffer[i];
             int64_t accum = 0;
 
@@ -861,8 +862,7 @@
                 index += index2;
             }
 
-            samples[dest_ch] = ((accum >> 14) & mask)
-                             + m->bypassed_lsbs[i][mat];
+            samples[dest_ch] = ((accum >> 14) & mask) + bypassed_lsb;
         }
     }
 }