comparison ac3dec.c @ 6871:dc6c9f74f2c1 libavcodec

10l: fix error in commit r13382
author jbr
date Sun, 25 May 2008 16:19:44 +0000
parents 59ae0494b656
children 60236c4f0b76
comparison
equal deleted inserted replaced
6870:62ce6173d0ea 6871:dc6c9f74f2c1
986 av_log(s->avctx, AV_LOG_ERROR, "new snr offsets must be present in block 0\n"); 986 av_log(s->avctx, AV_LOG_ERROR, "new snr offsets must be present in block 0\n");
987 return -1; 987 return -1;
988 } 988 }
989 989
990 /* coupling leak information */ 990 /* coupling leak information */
991 if (s->cpl_in_use && get_bits1(gbc)) { 991 if (s->cpl_in_use) {
992 if (get_bits1(gbc)) {
992 s->bit_alloc_params.cpl_fast_leak = get_bits(gbc, 3); 993 s->bit_alloc_params.cpl_fast_leak = get_bits(gbc, 3);
993 s->bit_alloc_params.cpl_slow_leak = get_bits(gbc, 3); 994 s->bit_alloc_params.cpl_slow_leak = get_bits(gbc, 3);
994 bit_alloc_stages[CPL_CH] = FFMAX(bit_alloc_stages[CPL_CH], 2); 995 bit_alloc_stages[CPL_CH] = FFMAX(bit_alloc_stages[CPL_CH], 2);
995 } else if (!blk) { 996 } else if (!blk) {
996 av_log(s->avctx, AV_LOG_ERROR, "new coupling leak info must be present in block 0\n"); 997 av_log(s->avctx, AV_LOG_ERROR, "new coupling leak info must be present in block 0\n");
997 return -1; 998 return -1;
999 }
998 } 1000 }
999 1001
1000 /* delta bit allocation information */ 1002 /* delta bit allocation information */
1001 if (get_bits1(gbc)) { 1003 if (get_bits1(gbc)) {
1002 /* delta bit allocation exists (strategy) */ 1004 /* delta bit allocation exists (strategy) */