[FFmpeg-cvslog] r18615 - trunk/libavcodec/mlpdec.c

ramiro subversion
Sat Apr 18 22:23:13 CEST 2009


Author: ramiro
Date: Sat Apr 18 22:23:13 2009
New Revision: 18615

Log:
mlpdec: Read context variable to local variable to make code cleaner.

Modified:
   trunk/libavcodec/mlpdec.c

Modified: trunk/libavcodec/mlpdec.c
==============================================================================
--- trunk/libavcodec/mlpdec.c	Sat Apr 18 21:52:52 2009	(r18614)
+++ trunk/libavcodec/mlpdec.c	Sat Apr 18 22:23:13 2009	(r18615)
@@ -849,6 +849,7 @@ static void rematrix_channels(MLPDecodeC
         /* 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 @@ static void rematrix_channels(MLPDecodeC
                 index += index2;
             }
 
-            samples[dest_ch] = ((accum >> 14) & mask)
-                             + m->bypassed_lsbs[i][mat];
+            samples[dest_ch] = ((accum >> 14) & mask) + bypassed_lsb;
         }
     }
 }



More information about the ffmpeg-cvslog mailing list