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

thilo.borgmann subversion at mplayerhq.hu
Mon Aug 10 01:49:02 CEST 2009


Author: thilo.borgmann
Date: Mon Aug 10 01:49:02 2009
New Revision: 5019

Log:
Removed a bug by reinitializing block sizes channel-wise.

Modified:
   als/alsdec.c

Modified: als/alsdec.c
==============================================================================
--- als/alsdec.c	Mon Aug 10 01:15:41 2009	(r5018)
+++ als/alsdec.c	Mon Aug 10 01:49:02 2009	(r5019)
@@ -658,7 +658,7 @@ static int read_frame_data(ALSDecContext
     uint32_t js_blocks[2];
 
     uint32_t bs_info = 0;
-    unsigned int *ptr_div_blocks = &div_blocks[0];
+    unsigned int *ptr_div_blocks;
 
     // skip ra_unit_size if present
     if (sconf->ra_flag == 1 && ra_frame)
@@ -683,6 +683,7 @@ static int read_frame_data(ALSDecContext
             }
 
             ctx->num_blocks = 0;
+            ptr_div_blocks = &div_blocks[0];
             parse_bs_info(bs_info, 0, 0, &ptr_div_blocks, &ctx->num_blocks);
             reconstruct_block_sizes(ctx, div_blocks);
 
@@ -786,6 +787,7 @@ static int read_frame_data(ALSDecContext
         }
 
         ctx->num_blocks = 0;
+        ptr_div_blocks = &div_blocks[0];
         parse_bs_info(bs_info, 0, 0, &ptr_div_blocks, &ctx->num_blocks);
         reconstruct_block_sizes(ctx, div_blocks);
 


More information about the FFmpeg-soc mailing list