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

thilo.borgmann subversion at mplayerhq.hu
Sat Nov 7 23:51:02 CET 2009


Author: thilo.borgmann
Date: Sat Nov  7 23:51:02 2009
New Revision: 5429

Log:
Move byte alignment from decode the block into read the block.

Modified:
   als/alsdec.c

Modified: als/alsdec.c
==============================================================================
--- als/alsdec.c	Tue Nov  3 23:53:47 2009	(r5428)
+++ als/alsdec.c	Sat Nov  7 23:51:02 2009	(r5429)
@@ -637,6 +637,9 @@ static int read_var_block_data(ALSDecCon
                 *current_res++ = decode_rice(gb, s[sb]);
     }
 
+    if (!sconf->mc_coding || ctx->js_switch)
+        align_get_bits(gb);
+
     return 0;
 }
 
@@ -753,8 +756,6 @@ static int read_block(ALSDecContext *ctx
  */
 static int decode_block(ALSDecContext *ctx, ALSBlockData *bd)
 {
-    ALSSpecificConfig *sconf = &ctx->sconf;
-    GetBitContext *gb        = &ctx->gb;
     unsigned int smp;
 
     // read block type flag and read the samples accordingly
@@ -765,9 +766,6 @@ static int decode_block(ALSDecContext *c
 
     // TODO: read RLSLMS extension data
 
-    if (!sconf->mc_coding || ctx->js_switch)
-        align_get_bits(gb);
-
     if (bd->shift_lsbs)
         for (smp = 0; smp < bd->block_length; smp++)
             bd->raw_samples[smp] <<= bd->shift_lsbs;


More information about the FFmpeg-soc mailing list