[FFmpeg-soc] [soc]: r5116 - als/alsdec.c

thilo.borgmann subversion at mplayerhq.hu
Sat Aug 15 13:22:00 CEST 2009


Author: thilo.borgmann
Date: Sat Aug 15 13:22:00 2009
New Revision: 5116

Log:
Remove unnecessary shifting of js_blocks.

Modified:
   als/alsdec.c

Modified: als/alsdec.c
==============================================================================
--- als/alsdec.c	Sat Aug 15 13:17:38 2009	(r5115)
+++ als/alsdec.c	Sat Aug 15 13:22:00 2009	(r5116)
@@ -471,8 +471,6 @@ static int read_block_data(ALSDecContext
     unsigned int block_type;
     unsigned int k;
 
-    *js_blocks <<= 1;
-
     // read block type
     block_type = get_bits1(gb);
 
@@ -481,7 +479,7 @@ static int read_block_data(ALSDecContext
         int32_t      const_val = 0;
 
         const_block  = get_bits1(gb);    // 1 = constant value, 0 = zero block (silence)
-        *js_blocks  |= get_bits1(gb);
+        *js_blocks   = get_bits1(gb);
 
         // skip 5 reserved bits
         skip_bits(gb, 5);
@@ -513,7 +511,7 @@ static int read_block_data(ALSDecContext
         int          sb, smp;
         int64_t      y;
 
-        *js_blocks |= get_bits1(gb);
+        *js_blocks  = get_bits1(gb);
 
         // Determine the number of sub blocks for entropy decoding
         if (!sconf->bgmc_mode && !sconf->sb_part)


More information about the FFmpeg-soc mailing list