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

thilo.borgmann subversion at mplayerhq.hu
Wed Aug 19 23:12:42 CEST 2009


Author: thilo.borgmann
Date: Wed Aug 19 23:12:42 2009
New Revision: 5179

Log:
Fix parse_bs_info termination criterion.

Modified:
   als/alsdec.c

Modified: als/alsdec.c
==============================================================================
--- als/alsdec.c	Wed Aug 19 23:11:12 2009	(r5178)
+++ als/alsdec.c	Wed Aug 19 23:12:42 2009	(r5179)
@@ -358,7 +358,7 @@ static int check_specific_config(ALSDecC
 static void parse_bs_info(uint32_t bs_info, unsigned int n, unsigned int div,
                           unsigned int **div_blocks, unsigned int *num_blocks)
 {
-    if (n < 32 && ((bs_info >> (30 - n)) & 1)) {
+    if (n < 31 && ((bs_info >> (30 - n)) & 1)) {
         // if the level is valid and the investigated bit n is set
         // then recursively check both children at bits (2n+1) and (2n+2)
         n   *= 2;


More information about the FFmpeg-soc mailing list